diff --git a/src/ui/form/tray/trayicon.cpp b/src/ui/form/tray/trayicon.cpp index f0f2a154..2f278e49 100644 --- a/src/ui/form/tray/trayicon.cpp +++ b/src/ui/form/tray/trayicon.cpp @@ -99,7 +99,7 @@ HotKeyManager *TrayIcon::hotKeyManager() const return ctrl()->hotKeyManager(); } -void TrayIcon::onTrayActivated(int reason) +void TrayIcon::onTrayActivated(QSystemTrayIcon::ActivationReason reason) { switch (reason) { case QSystemTrayIcon::Trigger: diff --git a/src/ui/form/tray/trayicon.h b/src/ui/form/tray/trayicon.h index 385504d8..ef96e246 100644 --- a/src/ui/form/tray/trayicon.h +++ b/src/ui/form/tray/trayicon.h @@ -44,7 +44,7 @@ public slots: void updateTrayMenu(bool onlyFlags = false); protected slots: - void onTrayActivated(int reason); + void onTrayActivated(QSystemTrayIcon::ActivationReason reason); void saveTrayFlags();