QEvent check for QT_NO_GESTURES in new debug code.
Latest changes to QEvent break compiling with -no-feature-gestures. Change-Id: Ibbddd73a4f567051c3793a7aaf438240add6583a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>bb10
parent
8f547c4252
commit
d8168f10a1
|
|
@ -3495,11 +3495,13 @@ static const char *eventClassName(QEvent::Type t)
|
|||
return "QCloseEvent";
|
||||
case QEvent::FileOpen:
|
||||
return "QFileOpenEvent";
|
||||
#ifndef QT_NO_GESTURES
|
||||
case QEvent::NativeGesture:
|
||||
return "QNativeGestureEvent";
|
||||
case QEvent::Gesture:
|
||||
case QEvent::GestureOverride:
|
||||
return "QGestureEvent";
|
||||
#endif
|
||||
case QEvent::HoverEnter:
|
||||
case QEvent::HoverLeave:
|
||||
case QEvent::HoverMove:
|
||||
|
|
@ -3596,11 +3598,13 @@ public:
|
|||
return QObject::staticQtMetaObject.enumerator(enumIdx).valueToKey(reason);
|
||||
}
|
||||
|
||||
# ifndef QT_NO_GESTURES
|
||||
static const char *nativeGestureTypeToString(Qt::NativeGestureType type)
|
||||
{
|
||||
static const int enumIdx = QObject::staticQtMetaObject.indexOfEnumerator("NativeGestureType");
|
||||
return QObject::staticQtMetaObject.enumerator(enumIdx).valueToKey(type);
|
||||
}
|
||||
# endif // !QT_NO_GESTURES
|
||||
};
|
||||
} // namespace
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue