Make it easier for tests to init the platform

Only a single static method is needed now, instead of 2.
This commit is contained in:
Sergio Martins
2022-04-29 14:31:09 +01:00
parent 34b07ef340
commit 099a9018df
10 changed files with 46 additions and 30 deletions

View File

@@ -108,16 +108,16 @@ QSize Platform_qtwidgets::screenSizeFor(View *view) const
#ifdef DOCKS_DEVELOPER_MODE
void Platform_qtwidgets::tests_initTests()
void Platform_qtwidgets::tests_initPlatform_impl()
{
qputenv("KDDOCKWIDGETS_SHOW_DEBUG_WINDOW", "");
Platform_qt::tests_initTests();
Platform_qt::tests_initPlatform_impl();
qApp->setStyle(QStyleFactory::create(QStringLiteral("fusion")));
}
void Platform_qtwidgets::tests_cleanupTests()
void Platform_qtwidgets::tests_deinitPlatform_impl()
{
Platform_qt::tests_cleanupTests();
Platform_qt::tests_deinitPlatform_impl();
}
#endif