summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-12-19 18:55:29 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-12-19 18:55:36 (GMT)
commit7faa6da4a71220755b8230ca505d2a04bdb6d668 (patch)
tree35598a80d7b7062396c795e0aeb7f0d2e740521b /Swift
parent775515df35bad313745efc26493399b63f43728c (diff)
downloadswift-7faa6da4a71220755b8230ca505d2a04bdb6d668.zip
swift-7faa6da4a71220755b8230ca505d2a04bdb6d668.tar.bz2
Make loginwindow hiding a little more consistent with other code
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtLoginWindow.cpp4
-rw-r--r--Swift/QtUI/QtLoginWindow.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp
index c1f4f24..cb348fc 100644
--- a/Swift/QtUI/QtLoginWindow.cpp
+++ b/Swift/QtUI/QtLoginWindow.cpp
@@ -383,6 +383,10 @@ void QtLoginWindow::bringToFront() {
}
}
+void QtLoginWindow::hide() {
+ window()->hide();
+}
+
void QtLoginWindow::resizeEvent(QResizeEvent*) {
emit geometryChanged();
}
diff --git a/Swift/QtUI/QtLoginWindow.h b/Swift/QtUI/QtLoginWindow.h
index 0efd377..d535ed4 100644
--- a/Swift/QtUI/QtLoginWindow.h
+++ b/Swift/QtUI/QtLoginWindow.h
@@ -40,6 +40,7 @@ namespace Swift {
void setGentleGeometry(const QRect&);
void selectUser(const String& user);
bool askUserToTrustCertificatePermanently(const String& message, Certificate::ref certificate);
+ void hide();
virtual void quit();