MainWindow::create() added for automatic tests
This commit is contained in:
@@ -48,6 +48,13 @@ class MainWindow: public Window
|
|||||||
return _instance;
|
return _instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(TESTS)
|
||||||
|
static void create()
|
||||||
|
{
|
||||||
|
_instance = new MainWindow();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(DEBUG_WINDOWS)
|
#if defined(DEBUG_WINDOWS)
|
||||||
std::string getName() const override
|
std::string getName() const override
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user