22 #ifndef SINGLECLICKGESTURE_H
23 #define SINGLECLICKGESTURE_H
30 #include <SysMgrDefs.h>
40 bool m_triggerSingleClickOnRelease;
41 Qt::KeyboardModifiers m_modifiers;
42 static Qt::GestureType type;
44 void startSingleClickTimer() {
45 m_timerId = startTimer(Settings::LunaSettings()->tapDoubleClickDuration);
48 void stopSingleClickTimer() {
57 #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
58 :
QGesture(parent, (Qt::GestureType) SysMgrGestureSingleClick)
62 , m_timerId(0), m_triggerSingleClickOnRelease (
false), m_mouseDown (
false)
65 m_timerValue = Settings::LunaSettings()->tapDoubleClickDuration;
66 if (m_timerValue <= 0)
71 stopSingleClickTimer();
74 Qt::KeyboardModifiers
modifiers()
const {
return m_modifiers; }