Delete the Platform when a test is complete

So that we support testing multiple platforms in the same test run
This commit is contained in:
Sergio Martins
2022-04-29 14:05:35 +01:00
parent 3907660dde
commit 34b07ef340
8 changed files with 35 additions and 13 deletions

View File

@@ -175,10 +175,15 @@ void Platform_qt::tests_sendEvent(Window::Ptr window, QEvent *ev) const
qApp->sendEvent(static_cast<Window_qt *>(window.get())->qtWindow(), ev);
}
void Platform_qt::tests_initTests() const
void Platform_qt::tests_initTests()
{
qApp->setOrganizationName(QStringLiteral("KDAB"));
qApp->setApplicationName(QStringLiteral("dockwidgets-unit-tests"));
}
void Platform_qt::tests_cleanupTests()
{
Platform::tests_cleanupTests();
}
#endif