From e7d57ba055627e6b6c8f6de61a497894e0caa658 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 29 Nov 2014 12:25:27 +0100 Subject: implement zero shortcut --- facetracknoir/ui.cpp | 7 +++++++ facetracknoir/ui.h | 1 + 2 files changed, 8 insertions(+) (limited to 'facetracknoir') 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(); -- cgit v1.2.3