summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtLoginWindowFactory.cpp')
-rw-r--r--Swift/QtUI/QtLoginWindowFactory.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/Swift/QtUI/QtLoginWindowFactory.cpp b/Swift/QtUI/QtLoginWindowFactory.cpp
deleted file mode 100644
index 2ac3dec..0000000
--- a/Swift/QtUI/QtLoginWindowFactory.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (c) 2010 Kevin Smith
- * Licensed under the GNU General Public License v3.
- * See Documentation/Licenses/GPLv3.txt for more information.
- */
-
-#include "QtLoginWindowFactory.h"
-#include "QtLoginWindow.h"
-
-#include <QDesktopWidget>
-
-namespace Swift {
-
-QtLoginWindowFactory::QtLoginWindowFactory(QSplitter* splitter, QtSystemTray* systemTray, QtSettingsProvider* settings) : QObject() {
- settings_ = settings;
- splitter_ = splitter;
- systemTray_ = systemTray;
-}
-
-LoginWindow* QtLoginWindowFactory::createLoginWindow(UIEventStream* uiEventStream) {
- window_ = new QtLoginWindow(uiEventStream);
- if (splitter_) {
- splitter_->insertWidget(0, window_);
- //return window_;
- }
- connect(systemTray_, SIGNAL(clicked()), window_, SLOT(bringToFront()));
- QVariant loginWindowGeometryVariant = settings_->getQSettings()->value("loginWindowGeometry");
- if (loginWindowGeometryVariant.isValid()) {
- window_->restoreGeometry(loginWindowGeometryVariant.toByteArray());
- }
- connect(window_, SIGNAL(geometryChanged()), this, SLOT(handleWindowGeometryChanged()));
- return window_;
-}
-
-void QtLoginWindowFactory::handleWindowGeometryChanged() {
- settings_->getQSettings()->setValue("loginWindowGeometry", window_->saveGeometry());
-}
-
-}