summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qgesturemanager_p.h
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-10-28 13:30:11 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-10-28 13:47:20 (GMT)
commit4b3ef85b499d9ec508acdf83d250e022161defbb (patch)
tree1bf5385b0be93272070ff3cff636984406b17b10 /src/gui/kernel/qgesturemanager_p.h
parent6efb1b7df725c74f265d0f315993542b0bd19b97 (diff)
downloadQt-4b3ef85b499d9ec508acdf83d250e022161defbb.zip
Qt-4b3ef85b499d9ec508acdf83d250e022161defbb.tar.gz
Qt-4b3ef85b499d9ec508acdf83d250e022161defbb.tar.bz2
Replaced QMap with QHash where possible in the gesture manager implementation.
There is no reason to use QMap when the key is a pointer. Reviewed-by: Thomas Zander
Diffstat (limited to 'src/gui/kernel/qgesturemanager_p.h')
-rw-r--r--src/gui/kernel/qgesturemanager_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/kernel/qgesturemanager_p.h b/src/gui/kernel/qgesturemanager_p.h
index f128273..4958cdb 100644
--- a/src/gui/kernel/qgesturemanager_p.h
+++ b/src/gui/kernel/qgesturemanager_p.h
@@ -83,14 +83,14 @@ public:
protected:
void timerEvent(QTimerEvent *event);
- bool filterEventThroughContexts(const QMap<QObject *, Qt::GestureType> &contexts,
+ bool filterEventThroughContexts(const QMultiHash<QObject *, Qt::GestureType> &contexts,
QEvent *event);
private:
QMultiMap<Qt::GestureType, QGestureRecognizer *> m_recognizers;
QSet<QGesture *> m_activeGestures;
- QMap<QGesture *, QBasicTimer> m_maybeGestures;
+ QHash<QGesture *, QBasicTimer> m_maybeGestures;
enum State {
Gesture,
@@ -117,7 +117,7 @@ private:
};
QMap<ObjectGesture, QList<QGesture *> > m_objectGestures;
- QMap<QGesture *, QGestureRecognizer *> m_gestureToRecognizer;
+ QHash<QGesture *, QGestureRecognizer *> m_gestureToRecognizer;
QHash<QGesture *, QObject *> m_gestureOwners;
QHash<QGesture *, QWidget *> m_gestureTargets;
@@ -125,7 +125,7 @@ private:
int m_lastCustomGestureId;
QHash<QGestureRecognizer *, QList<QGesture *> > m_obsoleteGestures;
- QMap<QGesture *, QGestureRecognizer *> m_deletedRecognizers;
+ QHash<QGesture *, QGestureRecognizer *> m_deletedRecognizers;
void cleanupGesturesForRemovedRecognizer(QGesture *gesture);
QGesture *getState(QObject *widget, QGestureRecognizer *recognizer,