Changeset 846 for trunk/src/gui/kernel/qgesturemanager_p.h
- Timestamp:
- May 5, 2011, 5:36:53 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/gui/kernel/qgesturemanager_p.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/kernel/qgesturemanager_p.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 59 59 #include "qgesturerecognizer.h" 60 60 61 62 61 63 QT_BEGIN_NAMESPACE 62 64 … … 86 88 87 89 protected: 88 void timerEvent(QTimerEvent *event);89 90 bool filterEventThroughContexts(const QMultiMap<QObject *, Qt::GestureType> &contexts, 90 91 QEvent *event); … … 94 95 95 96 QSet<QGesture *> m_activeGestures; 96 Q Hash<QGesture *, QBasicTimer> m_maybeGestures;97 Q> m_maybeGestures; 97 98 98 99 enum State { … … 101 102 MaybeGesture // this means timers are up and waiting for some 102 103 // more events, and input events are handled by 103 // gesture recognizer explicit ely104 // gesture recognizer explicitly 104 105 } state; 105 106 106 107 struct ObjectGesture 107 108 { 108 Q WeakPointer<QObject>object;109 Q object; 109 110 Qt::GestureType gesture; 110 111 … … 112 113 inline bool operator<(const ObjectGesture &rhs) const 113 114 { 114 if (object .data() < rhs.object.data())115 if (object) 115 116 return true; 116 117 if (object == rhs.object) … … 128 129 int m_lastCustomGestureId; 129 130 130 QHash<QGestureRecognizer *, Q List<QGesture *> > m_obsoleteGestures;131 QHash<QGestureRecognizer *, Qt<QGesture *> > m_obsoleteGestures; 131 132 QHash<QGesture *, QGestureRecognizer *> m_deletedRecognizers; 133 132 134 void cleanupGesturesForRemovedRecognizer(QGesture *gesture); 133 135 … … 145 147 QT_END_NAMESPACE 146 148 149 150 147 151 #endif // QGESTUREMANAGER_P_H
Note:
See TracChangeset
for help on using the changeset viewer.
