diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-28 09:06:16 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-28 09:11:15 +0100 |
commit | f2bb47e9261df4f060fcaec3c808ea6537a68eab (patch) | |
tree | 22564a695bf512daacfde1f885b5fde03a6e89a6 /facetracknoir/ui.h | |
parent | 1abdbee5bfa16df9ca8f0e7a9462503e86d672dd (diff) |
hook up tray to build
Issue: #64
Diffstat (limited to 'facetracknoir/ui.h')
-rw-r--r-- | facetracknoir/ui.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/facetracknoir/ui.h b/facetracknoir/ui.h index 9419936f..4158e29e 100644 --- a/facetracknoir/ui.h +++ b/facetracknoir/ui.h @@ -44,7 +44,7 @@ # include <windows.h> #endif -#include "ui_facetracknoir.h" +#include "ui_main.h" #include "opentrack/options.hpp" #include "opentrack/main-settings.hpp" @@ -85,13 +85,14 @@ class MainWindow : public QMainWindow, private State return modules.filters().value(ui.iconcomboFilter->currentIndex(), nullptr); } + void changeEvent(QEvent* e) override; + void createIconGroupBox(); void load_settings(); void updateButtonState(bool running, bool inertialp); void fill_profile_combobox(); void display_pose(const double* mapped, const double* raw); void ensure_tray(); - public slots: void shortcutRecentered(); void shortcutToggled(); @@ -112,6 +113,8 @@ private slots: void startTracker(); void stopTracker(); + + void restore_from_tray(QSystemTrayIcon::ActivationReason); public: MainWindow(); ~MainWindow(); |