Multiple fixes to MainWindow and some cleanup

* Fix MainWindow startup when minimize to tray was enabled
* Reduce duplicate code in DatabaseWidget.cpp
* Fix snapcraft build dependencies
* Add support for CTRL+TAB, CTRL+PGUP, CTRL+SHIFT+TAB, CTRL+PGDN to control database tabs from any focus location
* Add CTRL+SHIFT+M shortcut to minimize to tray
* Allow minimize instead of app exit without tray icon
This commit is contained in:
Jonathan White 2018-09-14 17:41:30 -04:00 committed by Janek Bevendorff
parent c749f7018e
commit a44138dd5c
8 changed files with 125 additions and 127 deletions

View file

@ -69,6 +69,8 @@ public slots:
void hideGlobalMessage();
void showYubiKeyPopup();
void hideYubiKeyPopup();
void hideWindow();
void toggleWindow();
void bringToFront();
void closeAllDatabases();
void lockAllDatabases();
@ -103,13 +105,13 @@ private slots:
void rememberOpenDatabases(const QString& filePath);
void applySettingsChanges();
void trayIconTriggered(QSystemTrayIcon::ActivationReason reason);
void hideWindow();
void toggleWindow();
void lockDatabasesAfterInactivity();
void forgetTouchIDAfterInactivity();
void hideTabMessage();
void handleScreenLock();
void showErrorMessage(const QString& message);
void selectNextDatabaseTab();
void selectPreviousDatabaseTab();
private:
static void setShortcut(QAction* action, QKeySequence::StandardKey standard, int fallback = 0);