summaryrefslogtreecommitdiffstats
path: root/src/sensors/gestures/qsensorgesturerecognizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sensors/gestures/qsensorgesturerecognizer.cpp')
-rw-r--r--src/sensors/gestures/qsensorgesturerecognizer.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/sensors/gestures/qsensorgesturerecognizer.cpp b/src/sensors/gestures/qsensorgesturerecognizer.cpp
index 2b6105e2..0a744b2b 100644
--- a/src/sensors/gestures/qsensorgesturerecognizer.cpp
+++ b/src/sensors/gestures/qsensorgesturerecognizer.cpp
@@ -181,8 +181,12 @@ void QSensorGestureRecognizer::startBackend()
qWarning() << "Not starting. Gesture Recognizer not initialized";
return;
}
- if (d_ptr->count++ == 0)
- start();
+ if (d_ptr->count++ == 0) {
+ start();
+#ifdef SIMULATOR_BUILD
+ Q_EMIT started();
+#endif
+ }
}
/*!
@@ -197,8 +201,12 @@ void QSensorGestureRecognizer::stopBackend()
qWarning() << "Not stopping. Gesture Recognizer not initialized";
return;
}
- if (--d_ptr->count == 0)
+ if (--d_ptr->count == 0) {
stop();
+#ifdef SIMULATOR_BUILD
+ Q_EMIT stopped();
+#endif
+ }
}
QT_END_NAMESPACE