implement a (nonperfect) hide-to-tray on win close

This commit is contained in:
denk-mal 2015-06-18 15:23:41 +02:00
parent 6b7f7bb777
commit 5982763bed
5 changed files with 35 additions and 2 deletions

View file

@ -65,6 +65,7 @@ private Q_SLOTS:
void applySettingsChanges();
void trayIconTriggered(QSystemTrayIcon::ActivationReason reason);
void toggleWindow();
void appExit();
private:
static void setShortcut(QAction* action, QKeySequence::StandardKey standard, int fallback = 0);
@ -87,6 +88,8 @@ private:
QSystemTrayIcon* m_trayIcon;
Q_DISABLE_COPY(MainWindow)
bool appExitCalled;
};
#endif // KEEPASSX_MAINWINDOW_H