diff options
Diffstat (limited to 'facetracknoir')
-rw-r--r-- | facetracknoir/ui.cpp | 7 | ||||
-rw-r--r-- | facetracknoir/ui.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp index b8f12490..06ff2d3c 100644 --- a/facetracknoir/ui.cpp +++ b/facetracknoir/ui.cpp @@ -411,6 +411,13 @@ void MainWindow::shortcutToggled() work->tracker->toggle_enabled(); } +void MainWindow::shortcutZeroed() +{ + qDebug() << "Zero"; + if (work) + work->tracker->zero(); +} + void MainWindow::ensure_tray() { if (tray) diff --git a/facetracknoir/ui.h b/facetracknoir/ui.h index 3f607726..70700cbb 100644 --- a/facetracknoir/ui.h +++ b/facetracknoir/ui.h @@ -96,6 +96,7 @@ class MainWindow : public QMainWindow, private State public slots: void shortcutRecentered(); void shortcutToggled(); + void shortcutZeroed(); void bindKeyboardShortcuts(); private slots: void open(); |