summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qevent.h
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-03-12 15:07:36 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-11 13:49:16 (GMT)
commit3e2cef8f6a58949b887add8ff1bb5e457e7be542 (patch)
treeb1f34bff7d54fe94a0e1599650a94b71a892f9ef /src/gui/kernel/qevent.h
parented24f677a411c449a2a3f862906aff2a313b4425 (diff)
downloadQt-3e2cef8f6a58949b887add8ff1bb5e457e7be542.zip
Qt-3e2cef8f6a58949b887add8ff1bb5e457e7be542.tar.gz
Qt-3e2cef8f6a58949b887add8ff1bb5e457e7be542.tar.bz2
Added QGraphicsSceneGestureEvent that extends plain QGestureEvent by
providing some additional info (like a widget that received a gesture - for coordinates conversions).
Diffstat (limited to 'src/gui/kernel/qevent.h')
-rw-r--r--src/gui/kernel/qevent.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h
index cde7cb2..603f358 100644
--- a/src/gui/kernel/qevent.h
+++ b/src/gui/kernel/qevent.h
@@ -717,27 +717,25 @@ private:
class Q_GUI_EXPORT QGestureEvent : public QEvent
{
public:
- QGestureEvent(QWidget *targetWidget, const QList<QGesture*> &gestures,
+ QGestureEvent(const QList<QGesture*> &gestures,
const QSet<Qt::GestureType> &cancelledGestures = QSet<Qt::GestureType>());
// internal ctor
QGestureEvent(const QGestureEvent &gestures, const QPoint &offset);
~QGestureEvent();
- QWidget *targetWidget() const
- { return m_targetWidget; }
-
inline bool contains(const Qt::GestureType &type) const
{ return gesture(type) != 0; }
inline QList<Qt::GestureType> gestureTypes() const
{ return m_gestures.keys(); }
inline const QGesture* gesture(const Qt::GestureType &type) const
{ return m_gestures.value(type, QSharedPointer<QGesture>()).data(); }
+ inline QList<QSharedPointer<QGesture> > gestures() const
+ { return m_gestures.values(); }
inline QSet<Qt::GestureType> cancelledGestures() const
{ return m_cancelledGestures; }
protected:
- QWidget *m_targetWidget;
QHash<Qt::GestureType, QSharedPointer<QGesture> > m_gestures;
QSet<Qt::GestureType> m_cancelledGestures;