summaryrefslogtreecommitdiffhomepage
path: root/gui/main-window.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-14 00:07:10 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-14 00:09:11 +0100
commitae4b33c18ae359fd378fc30dd6af8181fb916675 (patch)
treea6b732f88b28650caa171788c16fd40dc933735a /gui/main-window.hpp
parent3e64bb198781eda1ac6ca0b39c7c3a3d249548b5 (diff)
gui: fix tray
Diffstat (limited to 'gui/main-window.hpp')
-rw-r--r--gui/main-window.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/gui/main-window.hpp b/gui/main-window.hpp
index 402202d6..4fb64b70 100644
--- a/gui/main-window.hpp
+++ b/gui/main-window.hpp
@@ -89,7 +89,6 @@ class OTR_GUI_EXPORT main_window : public QMainWindow, private State
void update_button_state(bool running, bool inertialp);
void display_pose(const double* mapped, const double* raw);
- void ensure_tray();
void set_title(const QString& game_title = QStringLiteral(""));
static bool get_new_config_name_from_dialog(QString &ret);
void set_profile_in_registry(const QString& profile);
@@ -97,7 +96,7 @@ class OTR_GUI_EXPORT main_window : public QMainWindow, private State
void set_keys_enabled(bool flag);
bool is_config_listed(const QString& name);
- void init_tray_menu();
+ void init_tray();
void changeEvent(QEvent* e) override;
void closeEvent(QCloseEvent* ev) override;
@@ -121,7 +120,7 @@ class OTR_GUI_EXPORT main_window : public QMainWindow, private State
private slots:
void save_modules();
- void exit(int status = 0);
+ void exit(int status = EXIT_SUCCESS);
bool set_profile(const QString& new_name);
void show_tracker_settings();
@@ -141,6 +140,8 @@ private slots:
void start_tracker_();
void stop_tracker_();
+ void ensure_tray();
+
void toggle_restore_from_tray(QSystemTrayIcon::ActivationReason e);
signals: