\omitvalue ThreadChange
\omitvalue NetworkReplyUpdated
\omitvalue FutureCallOut
- \omitvalue NativeGesture
*/
/*!
TouchUpdate = 124,
TouchEnd = 125,
-#ifndef QT_NO_GESTURES
- NativeGesture = 126, // Internal for platform gesture support
-#endif
- RequestSoftwareInputPanel = 127,
- CloseSoftwareInputPanel = 128,
+ RequestSoftwareInputPanel = 126,
+ CloseSoftwareInputPanel = 127,
- WinIdChange = 129,
+ WinIdChange = 128,
#ifndef QT_NO_GESTURES
- Gesture = 130,
- GestureOverride = 131,
+ Gesture = 129,
+ GestureOverride = 130,
#endif
User = 1000, // first user event id
}
#ifndef QT_NO_GESTURES
- case QEvent::NativeGesture:
- {
- // only propagate the first gesture event (after the GID_BEGIN)
- QWidget *w = static_cast<QWidget *>(receiver);
- while (w) {
- e->ignore();
- res = d->notify_helper(w, e);
- if ((res && e->isAccepted()) || w->isWindow())
- break;
- w = w->parentWidget();
- }
- break;
- }
case QEvent::Gesture:
case QEvent::GestureOverride:
{
case QEvent::Close:
return "QCloseEvent";
#ifndef QT_NO_GESTURES
- case QEvent::NativeGesture:
- return "QNativeGestureEvent";
case QEvent::Gesture:
case QEvent::GestureOverride:
return "QGestureEvent";
case QEvent::ChildRemoved:
dbg << "QChildEvent(" << eventTypeName(type) << ", " << (static_cast<const QChildEvent*>(e))->child() << ')';
break;
-# ifndef QT_NO_GESTURES
- case QEvent::NativeGesture: {
- const QNativeGestureEvent *ne = static_cast<const QNativeGestureEvent *>(e);
- dbg << "QNativeGestureEvent(type=" << ne->type() << ", percentage=" << ne->percentage
- << "position=" << ne->position << ", angle=" << ne->angle << ')';
- }
- break;
-# endif // !QT_NO_GESTURES
case QEvent::ContextMenu:
dbg << "QContextMenuEvent(" << static_cast<const QContextMenuEvent *>(e)->pos() << ')';
break;
qreal pressure;
};
-#ifndef QT_NO_GESTURES
-class QNativeGestureEvent : public QEvent
-{
-public:
- enum Type {
- None,
- GestureBegin,
- GestureEnd,
- Pan,
- Zoom,
- Rotate,
- Swipe
- };
-
- QNativeGestureEvent()
- : QEvent(QEvent::NativeGesture), gestureType(None), percentage(0)
- {
- }
-
- Type gestureType;
- float percentage;
- QPoint position;
- float angle;
-};
-#endif // QT_NO_GESTURES
-
-
#ifndef QT_NO_CLIPBOARD
class Q_GUI_EXPORT QClipboardEvent : public QEvent
{