blob: e351f43989e1766adfb4a98462fb38ea78c62220 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "QtLoginWindowFactory.h"
#include "QtLoginWindow.h"
namespace Swift {
QtLoginWindowFactory::QtLoginWindowFactory(QSplitter* splitter, QtSystemTray* systemTray) : QObject() {
splitter_ = splitter;
systemTray_ = systemTray;
}
LoginWindow* QtLoginWindowFactory::createLoginWindow() {
QtLoginWindow* window = new QtLoginWindow();
if (splitter_) {
splitter_->insertWidget(0, window);
}
connect(systemTray_, SIGNAL(clicked()), window, SLOT(bringToFront()));
return window;
}
}
|