Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/kernel/qgesturemanager_p.h

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    5959#include "qgesturerecognizer.h"
    6060
     61#ifndef QT_NO_GESTURES
     62
    6163QT_BEGIN_NAMESPACE
    6264
     
    8688
    8789protected:
    88     void timerEvent(QTimerEvent *event);
    8990    bool filterEventThroughContexts(const QMultiMap<QObject *, Qt::GestureType> &contexts,
    9091                                    QEvent *event);
     
    9495
    9596    QSet<QGesture *> m_activeGestures;
    96     QHash<QGesture *, QBasicTimer> m_maybeGestures;
     97    QSet<QGesture *> m_maybeGestures;
    9798
    9899    enum State {
     
    101102        MaybeGesture // this means timers are up and waiting for some
    102103                     // more events, and input events are handled by
    103                      // gesture recognizer explicitely
     104                     // gesture recognizer explicitly
    104105    } state;
    105106
    106107    struct ObjectGesture
    107108    {
    108         QWeakPointer<QObject> object;
     109        QObject* object;
    109110        Qt::GestureType gesture;
    110111
     
    112113        inline bool operator<(const ObjectGesture &rhs) const
    113114        {
    114             if (object.data() < rhs.object.data())
     115            if (object < rhs.object)
    115116                return true;
    116117            if (object == rhs.object)
     
    128129    int m_lastCustomGestureId;
    129130
    130     QHash<QGestureRecognizer *, QList<QGesture *> > m_obsoleteGestures;
     131    QHash<QGestureRecognizer *, QSet<QGesture *> > m_obsoleteGestures;
    131132    QHash<QGesture *, QGestureRecognizer *> m_deletedRecognizers;
     133    QSet<QGesture *> m_gesturesToDelete;
    132134    void cleanupGesturesForRemovedRecognizer(QGesture *gesture);
    133135
     
    145147QT_END_NAMESPACE
    146148
     149#endif // QT_NO_GESTURES
     150
    147151#endif // QGESTUREMANAGER_P_H
Note: See TracChangeset for help on using the changeset viewer.