equal
deleted
inserted
replaced
43 #include "private/qstandardgestures_p.h" |
43 #include "private/qstandardgestures_p.h" |
44 #include "private/qwidget_p.h" |
44 #include "private/qwidget_p.h" |
45 #include "private/qgesture_p.h" |
45 #include "private/qgesture_p.h" |
46 #include "private/qgraphicsitem_p.h" |
46 #include "private/qgraphicsitem_p.h" |
47 #include "private/qevent_p.h" |
47 #include "private/qevent_p.h" |
|
48 #include "private/qapplication_p.h" |
48 #include "qgesture.h" |
49 #include "qgesture.h" |
49 #include "qevent.h" |
50 #include "qevent.h" |
50 #include "qgraphicsitem.h" |
51 #include "qgraphicsitem.h" |
51 |
52 |
52 #ifdef Q_WS_MAC |
53 #ifdef Q_WS_MAC |
84 registerGestureRecognizer(new QSwipeGestureRecognizer); |
85 registerGestureRecognizer(new QSwipeGestureRecognizer); |
85 registerGestureRecognizer(new QTapGestureRecognizer); |
86 registerGestureRecognizer(new QTapGestureRecognizer); |
86 #endif |
87 #endif |
87 #if defined(Q_OS_WIN) |
88 #if defined(Q_OS_WIN) |
88 #if !defined(QT_NO_NATIVE_GESTURES) |
89 #if !defined(QT_NO_NATIVE_GESTURES) |
89 registerGestureRecognizer(new QWinNativePanGestureRecognizer); |
90 if (QApplicationPrivate::HasTouchSupport) |
|
91 registerGestureRecognizer(new QWinNativePanGestureRecognizer); |
90 #endif |
92 #endif |
91 #else |
93 #else |
92 registerGestureRecognizer(new QTapAndHoldGestureRecognizer); |
94 registerGestureRecognizer(new QTapAndHoldGestureRecognizer); |
93 #endif |
95 #endif |
94 } |
96 } |