diff options
Diffstat (limited to 'Swift/QtUI/QtLoginWindowFactory.cpp')
-rw-r--r-- | Swift/QtUI/QtLoginWindowFactory.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Swift/QtUI/QtLoginWindowFactory.cpp b/Swift/QtUI/QtLoginWindowFactory.cpp index 4874828..5d63ebc 100644 --- a/Swift/QtUI/QtLoginWindowFactory.cpp +++ b/Swift/QtUI/QtLoginWindowFactory.cpp @@ -2,7 +2,16 @@ #include "QtLoginWindow.h" namespace Swift { + +QtLoginWindowFactory::QtLoginWindowFactory(QSplitter* splitter) { + splitter_ = splitter; +} + LoginWindow* QtLoginWindowFactory::createLoginWindow(const String& defaultJID, const String& defaultPassword, const String& defaultCertificate) { - return new QtLoginWindow(defaultJID, defaultPassword, defaultCertificate); + QtLoginWindow* window = new QtLoginWindow(defaultJID, defaultPassword, defaultCertificate); + if (splitter_) { + splitter_->insertWidget(0, window); + } + return window; } } |