diff options
Diffstat (limited to 'Swift/QtUI/QtMainWindowFactory.cpp')
-rw-r--r-- | Swift/QtUI/QtMainWindowFactory.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Swift/QtUI/QtMainWindowFactory.cpp b/Swift/QtUI/QtMainWindowFactory.cpp index 9594ade..0794780 100644 --- a/Swift/QtUI/QtMainWindowFactory.cpp +++ b/Swift/QtUI/QtMainWindowFactory.cpp @@ -5,12 +5,17 @@ namespace Swift { QtMainWindowFactory::QtMainWindowFactory(QtTreeWidgetFactory *treeWidgetFactory) : treeWidgetFactory_(treeWidgetFactory) { - + lastWindow_ = NULL; } MainWindow* QtMainWindowFactory::createMainWindow() { QtMainWindow* window = new QtMainWindow(treeWidgetFactory_); + lastWindow_ = window; return window; } +MainWindow* QtMainWindowFactory::getLastCreatedWindow() { + return lastWindow_; +} + } |