equal
deleted
inserted
replaced
636 |
636 |
637 class Q_GUI_EXPORT QFileOpenEvent : public QEvent |
637 class Q_GUI_EXPORT QFileOpenEvent : public QEvent |
638 { |
638 { |
639 public: |
639 public: |
640 QFileOpenEvent(const QString &file); |
640 QFileOpenEvent(const QString &file); |
|
641 QFileOpenEvent(const QUrl &url); |
641 ~QFileOpenEvent(); |
642 ~QFileOpenEvent(); |
642 |
643 |
643 inline QString file() const { return f; } |
644 inline QString file() const { return f; } |
|
645 QUrl url() const; |
644 private: |
646 private: |
645 QString f; |
647 QString f; |
646 }; |
648 }; |
647 |
649 |
648 #ifndef QT_NO_TOOLBAR |
650 #ifndef QT_NO_TOOLBAR |
783 void setPressure(qreal pressure); |
785 void setPressure(qreal pressure); |
784 QTouchEvent::TouchPoint &operator=(const QTouchEvent::TouchPoint &other); |
786 QTouchEvent::TouchPoint &operator=(const QTouchEvent::TouchPoint &other); |
785 |
787 |
786 private: |
788 private: |
787 QTouchEventTouchPointPrivate *d; |
789 QTouchEventTouchPointPrivate *d; |
|
790 friend class QApplication; |
|
791 friend class QApplicationPrivate; |
788 }; |
792 }; |
789 |
793 |
790 enum DeviceType { |
794 enum DeviceType { |
791 TouchScreen, |
795 TouchScreen, |
792 TouchPad |
796 TouchPad |
814 QWidget *_widget; |
818 QWidget *_widget; |
815 QTouchEvent::DeviceType _deviceType; |
819 QTouchEvent::DeviceType _deviceType; |
816 Qt::TouchPointStates _touchPointStates; |
820 Qt::TouchPointStates _touchPointStates; |
817 QList<QTouchEvent::TouchPoint> _touchPoints; |
821 QList<QTouchEvent::TouchPoint> _touchPoints; |
818 |
822 |
|
823 friend class QApplication; |
819 friend class QApplicationPrivate; |
824 friend class QApplicationPrivate; |
820 }; |
825 }; |
821 |
826 |
822 class QGesture; |
827 class QGesture; |
823 class QGestureEventPrivate; |
828 class QGestureEventPrivate; |
825 { |
830 { |
826 public: |
831 public: |
827 QGestureEvent(const QList<QGesture *> &gestures); |
832 QGestureEvent(const QList<QGesture *> &gestures); |
828 ~QGestureEvent(); |
833 ~QGestureEvent(); |
829 |
834 |
830 QList<QGesture *> allGestures() const; |
835 QList<QGesture *> gestures() const; |
831 QGesture *gesture(Qt::GestureType type) const; |
836 QGesture *gesture(Qt::GestureType type) const; |
832 |
837 |
833 QList<QGesture *> activeGestures() const; |
838 QList<QGesture *> activeGestures() const; |
834 QList<QGesture *> canceledGestures() const; |
839 QList<QGesture *> canceledGestures() const; |
835 |
840 |
849 void setAccepted(QGesture *, bool); |
854 void setAccepted(QGesture *, bool); |
850 void accept(QGesture *); |
855 void accept(QGesture *); |
851 void ignore(QGesture *); |
856 void ignore(QGesture *); |
852 bool isAccepted(QGesture *) const; |
857 bool isAccepted(QGesture *) const; |
853 |
858 |
|
859 void setAccepted(Qt::GestureType, bool); |
|
860 void accept(Qt::GestureType); |
|
861 void ignore(Qt::GestureType); |
|
862 bool isAccepted(Qt::GestureType) const; |
|
863 |
854 void setWidget(QWidget *widget); |
864 void setWidget(QWidget *widget); |
855 QWidget *widget() const; |
865 QWidget *widget() const; |
856 |
866 |
857 QPointF mapToScene(const QPointF &gesturePoint) const; |
867 #ifndef QT_NO_GRAPHICSVIEW |
|
868 QPointF mapToGraphicsScene(const QPointF &gesturePoint) const; |
|
869 #endif |
858 |
870 |
859 private: |
871 private: |
860 QGestureEventPrivate *d_func(); |
872 QGestureEventPrivate *d_func(); |
861 const QGestureEventPrivate *d_func() const; |
873 const QGestureEventPrivate *d_func() const; |
862 |
874 |