[libraries/ktextaddons] textautogeneratetextmcpprotocol/widgets/autotests: Fix autotest

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 2ea8ad123938202efd1c5b11a5d00d7815f011c8 by Laurent Montel.
Committed on 24/07/2026 at 12:55.
Pushed by mlaurent into branch 'master'.

Fix autotest

M  +2    -2    textautogeneratetextmcpprotocol/widgets/autotests/addmcpsteamablehttpserverheaderwidgettest.cpp

https://invent.kde.org/libraries/ktextaddons/-/commit/2ea8ad123938202efd1c5b11a5d00d7815f011c8

diff --git a/textautogeneratetextmcpprotocol/widgets/autotests/addmcpsteamablehttpserverheaderwidgettest.cpp b/textautogeneratetextmcpprotocol/widgets/autotests/addmcpsteamablehttpserverheaderwidgettest.cpp
index 884ddbd55..9db83cc47 100644
--- a/textautogeneratetextmcpprotocol/widgets/autotests/addmcpsteamablehttpserverheaderwidgettest.cpp
+++ b/textautogeneratetextmcpprotocol/widgets/autotests/addmcpsteamablehttpserverheaderwidgettest.cpp
@@ -5,8 +5,8 @@
 */
 #include "addmcpsteamablehttpserverheaderwidgettest.h"
 #include "server/addmcpsteamablehttpserverheaderwidget.h"
+#include <QHBoxLayout>
 #include <QTest>
-#include <QVBoxLayout>
 QTEST_MAIN(AddMcpSteamableHttpServerHeaderWidgetTest)
 using namespace Qt::Literals::StringLiterals;
 AddMcpSteamableHttpServerHeaderWidgetTest::AddMcpSteamableHttpServerHeaderWidgetTest(QObject *parent)
@@ -18,7 +18,7 @@ void AddMcpSteamableHttpServerHeaderWidgetTest::shouldHaveDefaultValues()
 {
     const TextAutoGenerateTextMcpProtocolWidgets::AddMcpSteamableHttpServerHeaderWidget w;
 
-    auto mainLayout = w.findChild<QVBoxLayout *>(u"mainLayout"_s);
+    auto mainLayout = w.findChild<QHBoxLayout *>(u"mainLayout"_s);
     QVERIFY(mainLayout);
     QCOMPARE(mainLayout->contentsMargins(), QMargins{});
     // TODO
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.