diff -r 5dc02b23752f -r 3e2da88830cd src/gui/kernel/qevent.cpp --- a/src/gui/kernel/qevent.cpp Tue Jul 06 15:10:48 2010 +0300 +++ b/src/gui/kernel/qevent.cpp Wed Aug 18 10:37:55 2010 +0300 @@ -3421,9 +3421,11 @@ case QEvent::ChildRemoved: n = n ? n : "ChildRemoved"; dbg.nospace() << "QChildEvent(" << n << ", " << (static_cast(e))->child(); return dbg.space(); +#ifndef QT_NO_GESTURES case QEvent::Gesture: n = "Gesture"; break; +#endif default: dbg.nospace() << "QEvent(" << (const void *)e << ", type = " << e->type() << ')'; return dbg.space(); @@ -4254,6 +4256,7 @@ return *this; } +#ifndef QT_NO_GESTURES /*! \class QGestureEvent \since 4.6 @@ -4558,4 +4561,6 @@ */ #endif +#endif // QT_NO_GESTURES + QT_END_NAMESPACE