summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();