Source

Target

Commits (2)
Showing with 8 additions and 7 deletions
......@@ -36,9 +36,13 @@
QT_BEGIN_NAMESPACE
QCoverSensorGestureRecognizer::QCoverSensorGestureRecognizer(QObject *parent) :
QSensorGestureRecognizer(parent),
orientationReading(0), proximityReading(0),active(0), detecting(0)
QCoverSensorGestureRecognizer::QCoverSensorGestureRecognizer(QObject *parent)
: QSensorGestureRecognizer(parent),
orientationReading(0),
proximityReading(0),
timer(0),
active(0),
detecting(0)
{
}
......@@ -114,7 +118,6 @@ void QCoverSensorGestureRecognizer::proximityChanged(QProximityReading *reading)
detecting = true;
}
}
lastTs = reading->timestamp();
}
void QCoverSensorGestureRecognizer::orientationReadingChanged(QOrientationReading *reading)
......
......@@ -70,10 +70,8 @@ private:
bool proximityReading;
QTimer *timer;
QtSensorGestureSensorHandler *handler;
bool active;
bool detecting;
qreal lastTs;
};
QT_END_NAMESPACE
......
......@@ -12,7 +12,7 @@ SOURCES += dummycommon.cpp\
OTHER_FILES = plugin.json
unix:!mac:!qnx:!android:LIBS+=-lrt
unix:!darwin:!qnx:!android:!openbsd: LIBS += -lrt
PLUGIN_TYPE = sensors
PLUGIN_CLASS_NAME = dummySensorPlugin
......