blob: 5d63ebcf7c2621707e546b5886da912b78d9599a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "QtLoginWindowFactory.h"
#include "QtLoginWindow.h"
namespace Swift {
QtLoginWindowFactory::QtLoginWindowFactory(QSplitter* splitter) {
splitter_ = splitter;
}
LoginWindow* QtLoginWindowFactory::createLoginWindow(const String& defaultJID, const String& defaultPassword, const String& defaultCertificate) {
QtLoginWindow* window = new QtLoginWindow(defaultJID, defaultPassword, defaultCertificate);
if (splitter_) {
splitter_->insertWidget(0, window);
}
return window;
}
}
|