summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-06-21 15:16:22 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-06-21 15:18:49 (GMT)
commitb1cc881c57dc8498e2ccdf1552421e116a01d3dd (patch)
treed209bbc0046397cd7e3798574ccb4af25bb88592 /Swift/QtUI/QtLoginWindowFactory.cpp
parent1ac73ccac3f25efcf4f98f77f9d073c11553f983 (diff)
downloadswift-b1cc881c57dc8498e2ccdf1552421e116a01d3dd.zip
swift-b1cc881c57dc8498e2ccdf1552421e116a01d3dd.tar.bz2
Unconditional netbookremix mode
Diffstat (limited to 'Swift/QtUI/QtLoginWindowFactory.cpp')
-rw-r--r--Swift/QtUI/QtLoginWindowFactory.cpp11
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;
}
}