From a73746fe8b0ed8499ce6bbaed2be1d17ac28fb6c Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Tue, 9 Feb 2021 16:12:22 +0000 Subject: [PATCH] tests: Use the MultiSplitter base class in a few places --- tests/tst_docks.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tst_docks.cpp b/tests/tst_docks.cpp index 77d95027..dc271f88 100644 --- a/tests/tst_docks.cpp +++ b/tests/tst_docks.cpp @@ -537,7 +537,7 @@ void TestDocks::tst_detachFromMainWindow() auto fw1 = dock1->window(); m->addDockWidget(dock1, Location_OnTop); - QVERIFY(m->multiSplitter()->mainWindow() != nullptr); + QVERIFY(m->layoutWidget()->mainWindow() != nullptr); QVERIFY(!dock1->isFloating()); TitleBar *tb = dock1->titleBar(); QVERIFY(tb == dock1->dptr()->frame()->titleBar()); @@ -807,7 +807,7 @@ void TestDocks::tst_restoreEmpty() const QSize oldSize = m->size(); QVERIFY(saver.saveToFile(QStringLiteral("layout_tst_restoreEmpty.json"))); saver.restoreFromFile(QStringLiteral("layout_tst_restoreEmpty.json")); - QVERIFY(m->multiSplitter()->checkSanity()); + QVERIFY(m->layoutWidget()->checkSanity()); QCOMPARE(layout->separators().size(), 0); QCOMPARE(layout->count(), 0); QCOMPARE(m->size(), oldSize);