Add KDDockWidgets::initPlatform()

Instead of using the static variable, which is initialized before
having QApplication.

Will allow us to remove the QTimer from Platform init
This commit is contained in:
Sergio Martins
2022-04-11 00:55:28 +01:00
parent 8cd05c7314
commit 037140b980
12 changed files with 57 additions and 8 deletions

View File

@@ -46,6 +46,9 @@ class TestDocks : public QObject
public Q_SLOTS:
void initTestCase()
{
// TODOv2
KDDockWidgets::initFrontend(KDDockWidgets::FrontendType::QtWidgets);
qputenv("KDDOCKWIDGETS_SHOW_DEBUG_WINDOW", "");
qApp->setOrganizationName("KDAB");
qApp->setApplicationName("dockwidgets-unit-tests");