diff --git a/tests/tst_docks.cpp b/tests/tst_docks.cpp index 595bf825..5a91ed53 100644 --- a/tests/tst_docks.cpp +++ b/tests/tst_docks.cpp @@ -547,7 +547,7 @@ DockWidgetBase *createAndNestDockWidget(DropArea *dropArea, Frame *relativeTo, K return dock; } -std::unique_ptr createSimpleNestedMainWindow(DockWidgetBase * *centralDock, DockWidgetBase * *leftDock, DockWidgetBase * *rightDock) +std::unique_ptr createSimpleNestedMainWindow(DockWidgetBase * *centralDock, DockWidgetBase * *leftDock, DockWidgetBase * *rightDock) { auto window = createMainWindow({900, 500}); *centralDock = createDockWidget("centralDock", Qt::green); @@ -773,7 +773,7 @@ void TestDocks::tst_close() // 2. Test that closing the single frame of a main window doesn't close the main window itself { auto m = createMainWindow(QSize(800, 500), MainWindowOption_None); // Remove central frame - QPointer mainWindowPtr = m.get(); + QPointer mainWindowPtr = m.get(); dock1 = createDockWidget("hello", Qt::green); m->addDockWidget(dock1, Location_OnLeft); @@ -786,7 +786,7 @@ void TestDocks::tst_close() // 2.1 Test closing the frame instead { auto m = createMainWindow(QSize(800, 500), MainWindowOption_None); // Remove central frame - QPointer mainWindowPtr = m.get(); + QPointer mainWindowPtr = m.get(); dock1 = createDockWidget("hello", Qt::green); m->addDockWidget(dock1, Location_OnLeft); @@ -800,7 +800,7 @@ void TestDocks::tst_close() // 2.2 Repeat, but with a central frame { auto m = createMainWindow(QSize(800, 500)); - QPointer mainWindowPtr = m.get(); + QPointer mainWindowPtr = m.get(); dock1 = createDockWidget("hello", Qt::green); m->addDockWidget(dock1, Location_OnLeft); diff --git a/tests/utils.cpp b/tests/utils.cpp index 78fa6ea0..8026f48e 100644 --- a/tests/utils.cpp +++ b/tests/utils.cpp @@ -47,7 +47,7 @@ void NonClosableWidget::closeEvent(QCloseEvent *ev) } #ifdef KDDOCKWIDGETS_QTWIDGETS -std::unique_ptr KDDockWidgets::Tests::createMainWindow(QSize sz, KDDockWidgets::MainWindowOptions options, const QString &name) +std::unique_ptr KDDockWidgets::Tests::createMainWindow(QSize sz, KDDockWidgets::MainWindowOptions options, const QString &name) { static int count = 0; count++; @@ -91,7 +91,7 @@ DockWidgetBase *KDDockWidgets::Tests::createDockWidget(const QString &name, QCol }; #ifdef KDDOCKWIDGETS_QTWIDGETS -std::unique_ptr KDDockWidgets::Tests::createMainWindow(QVector &docks) +std::unique_ptr KDDockWidgets::Tests::createMainWindow(QVector &docks) { static int count = 0; count++; diff --git a/tests/utils.h b/tests/utils.h index 1c302d5f..4db03f73 100644 --- a/tests/utils.h +++ b/tests/utils.h @@ -89,12 +89,12 @@ struct EnsureTopLevelsDeleted bool shouldBlacklistWarning(const QString &msg, const QString &category = {}); #ifdef KDDOCKWIDGETS_QTWIDGETS -std::unique_ptr createMainWindow(QSize sz = {600, 600}, +std::unique_ptr createMainWindow(QSize sz = {600, 600}, KDDockWidgets::MainWindowOptions options = MainWindowOption_HasCentralFrame, const QString &name = {}); -std::unique_ptr createMainWindow(QVector &docks); +std::unique_ptr createMainWindow(QVector &docks); #endif KDDockWidgets::DockWidgetBase *createDockWidget(const QString &name, QWidgetOrQuick *w, DockWidgetBase::Options options = {}, bool show = true,