qstmgesturelib/qstmuievent.h
changeset 16 3c88a81ff781
parent 3 0954f5dd2cd0
equal deleted inserted replaced
14:6aeb7a756187 16:3c88a81ff781
    47     
    47     
    48     virtual QPointF speedVec() const;
    48     virtual QPointF speedVec() const;
    49     virtual void  setSpeedVec(QPointF speedVec) { m_speedVec = speedVec; }
    49     virtual void  setSpeedVec(QPointF speedVec) { m_speedVec = speedVec; }
    50     virtual QEvent::Type  mapToMouseEventType();
    50     virtual QEvent::Type  mapToMouseEventType();
    51     virtual QEvent::Type  mapToTouchEventType();
    51     virtual QEvent::Type  mapToTouchEventType();
    52 
    52     virtual unsigned int  getModifiers() { return m_modifiers; }
    53     
    53     
    54     // for testing...
    54     // for testing...
    55     virtual void logSpeed() const ;
    55     virtual void logSpeed() const ;
    56 
    56 
    57     QStm_UiEvent(
    57     QStm_UiEvent(
    58         QStm_UiEventCode code,
    58         QStm_UiEventCode code,
    59         const QPoint& start, const QPoint& xy, const QPoint& previousXY,
    59         const QPoint& start, const QPoint& xy, const QPoint& previousXY,
    60         bool timerExpired, void* target, long interval,
    60         bool timerExpired, void* target, long interval,
    61         int index, QTime timestamp) ;
    61         int index, QTime timestamp, unsigned int modifiers = 0) ;
    62 
    62 
    63     ~QStm_UiEvent() ;
    63     ~QStm_UiEvent() ;
    64     /*!
    64     /*!
    65      * Chain the UI events ; the whole chain is deleted after release has been handled
    65      * Chain the UI events ; the whole chain is deleted after release has been handled
    66      * in UI sender
    66      * in UI sender
    76     void*  m_target ;
    76     void*  m_target ;
    77     bool   m_timerExpired ;
    77     bool   m_timerExpired ;
    78     int    m_index ;
    78     int    m_index ;
    79     QStm_UiEvent* m_previousEvent ;
    79     QStm_UiEvent* m_previousEvent ;
    80     QTime  m_timestamp ;
    80     QTime  m_timestamp ;
       
    81     unsigned int    m_modifiers;
    81 };
    82 };
    82 }
    83 }
    83 
    84 
    84 
    85 
    85 #endif /* QSTMUIEVENT_H_ */
    86 #endif /* QSTMUIEVENT_H_ */