class QKeyEvent;
class QTapGesture;
class QTransform;
+class QTouchEvent;
/**
* @brief Controls the view, model and selection of an item-list.
bool processEvent(QEvent* event, const QTransform& transform);
-signals:
+Q_SIGNALS:
/**
* Is emitted if exactly one item has been activated by e.g. a mouse-click
* or by pressing Return/Enter.
void decreaseZoom();
void swipeUp();
-public slots:
+public Q_SLOTS:
void slotStateChanged(QScroller::State newState);
-private slots:
+private Q_SLOTS:
void slotViewScrollOffsetChanged(qreal current, qreal previous);
/**
bool wheelEvent(QGraphicsSceneWheelEvent* event, const QTransform& transform);
bool resizeEvent(QGraphicsSceneResizeEvent* event, const QTransform& transform);
bool gestureEvent(QGestureEvent* event, const QTransform& transform);
+ bool touchBeginEvent(QTouchEvent* event, const QTransform& transform);
void tapTriggered(QTapGesture* tap, const QTransform& transform);
void tapAndHoldTriggered(QGestureEvent* event, const QTransform& transform);
void pinchTriggered(QGestureEvent* event, const QTransform& transform);
bool m_scrollerIsScrolling;
bool m_pinchGestureInProgress;
bool m_mousePress;
+ bool m_isTouchEvent;
SelectionBehavior m_selectionBehavior;
AutoActivationBehavior m_autoActivationBehavior;
MouseDoubleClickAction m_mouseDoubleClickAction;
Qt::GestureType m_swipeGesture;
Qt::GestureType m_twoFingerTapGesture;
- Qt::MouseEventSource m_lastSource;
/**
* When starting a rubberband selection during a Shift- or Control-key has been