summaryrefslogtreecommitdiffstats
path: root/examples/gestures/collidingmice/linjazaxgesture.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gestures/collidingmice/linjazaxgesture.h')
-rw-r--r--examples/gestures/collidingmice/linjazaxgesture.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/examples/gestures/collidingmice/linjazaxgesture.h b/examples/gestures/collidingmice/linjazaxgesture.h
index 9601675..8a7cb23 100644
--- a/examples/gestures/collidingmice/linjazaxgesture.h
+++ b/examples/gestures/collidingmice/linjazaxgesture.h
@@ -31,13 +31,16 @@ public:
};
public:
- explicit LinjaZaxGesture(const Qt::GestureType &type, Qt::GestureState state = Qt::GestureStarted)
- : QGesture(type, state), lastDirection_(None), direction_(None), zoomState_(NoZoom) { }
- LinjaZaxGesture(const Qt::GestureType &type, const QPoint &startPos,
- const QPoint &lastPos, const QPoint &pos, const QRect &rect,
- const QPoint &hotSpot, const QDateTime &startTime,
- uint duration, Qt::GestureState state)
- : QGesture(type, startPos, lastPos, pos, rect, hotSpot, startTime, duration, state) { }
+ explicit LinjaZaxGesture(QObject *parent,
+ Qt::GestureState state = Qt::GestureStarted)
+ : QGesture(parent, QLatin1String("LinjaZax"), state), lastDirection_(None),
+ direction_(None), zoomState_(NoZoom) { }
+ LinjaZaxGesture(QObject *parent, const QPoint &startPos,
+ const QPoint &lastPos, const QPoint &pos, const QRect &rect,
+ const QPoint &hotSpot, const QDateTime &startTime,
+ uint duration, Qt::GestureState state)
+ : QGesture(parent, QLatin1String("LinjaZax"), startPos, lastPos,
+ pos, rect, hotSpot, startTime, duration, state) { }
~LinjaZaxGesture() { }
DirectionType lastDirection() const