summaryrefslogtreecommitdiffstats
path: root/examples/sensors/sensorgestures/mainwindow.h
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@nokia.com>2011-11-09 11:31:53 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-09 07:26:31 +0100
commitdb2df16d1aa7ece4ee27b16122142c002b01d65d (patch)
treef53f6b3f19d1f0e554af83707720ae6c99d4d9a4 /examples/sensors/sensorgestures/mainwindow.h
parent2d75ee6c831ecab52e94313675d48a318ef592e2 (diff)
add documentation to sensor gesture c++ example
Also make the example app a bit more informative and useful. Change-Id: I9e74d12c7d762df46355467670f0b9b41e7b3b5c Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
Diffstat (limited to 'examples/sensors/sensorgestures/mainwindow.h')
-rw-r--r--examples/sensors/sensorgestures/mainwindow.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/sensors/sensorgestures/mainwindow.h b/examples/sensors/sensorgestures/mainwindow.h
index 24a6f63c..d0fd7f73 100644
--- a/examples/sensors/sensorgestures/mainwindow.h
+++ b/examples/sensors/sensorgestures/mainwindow.h
@@ -42,6 +42,7 @@
#define MAINWINDOW_H
#include <QtWidgets/QMainWindow>
+#include <qsensorgesture.h>
namespace Ui {
class MainWindow;
@@ -57,11 +58,16 @@ public:
private:
Ui::MainWindow *ui;
+ QMap <QString, QSensorGesture *> recognizerMap;
+
private slots:
void detectedShake(const QString&);
void onShake();
void on_pushButton_clicked();
+
+ void on_startPushButton_clicked();
+ void on_stopPushButton_clicked();
};
#endif // MAINWINDOW_H