summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-11-29 12:25:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-11-29 12:25:27 +0100
commite7d57ba055627e6b6c8f6de61a497894e0caa658 (patch)
tree1ffe7924840380d3404e2a80d31623428925f5ec /facetracknoir
parent8a87e1a658f04eaffa10da30f019a64902f8d917 (diff)
implement zero shortcut
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/ui.cpp7
-rw-r--r--facetracknoir/ui.h1
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();