MainWindow::create() added for automatic tests

This commit is contained in:
Bertrand Songis
2021-04-06 11:19:14 +02:00
parent 054411f53a
commit da2215d01e
+7
View File
@@ -48,6 +48,13 @@ class MainWindow: public Window
return _instance;
}
#if defined(TESTS)
static void create()
{
_instance = new MainWindow();
}
#endif
#if defined(DEBUG_WINDOWS)
std::string getName() const override
{