summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2010-01-06 12:08:25 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2010-01-06 16:02:52 (GMT)
commit52e527548df53afe0c57e9416c6d7aad8de9bb6e (patch)
treec5c2586ebfae8cf109bd5b06b34fac6f2dde3eaa
parente1c92f6d16c6e83783bf4dba722c0a0fc29f3393 (diff)
downloadQt-52e527548df53afe0c57e9416c6d7aad8de9bb6e.zip
Qt-52e527548df53afe0c57e9416c6d7aad8de9bb6e.tar.gz
Qt-52e527548df53afe0c57e9416c6d7aad8de9bb6e.tar.bz2
Fix QT_NO_CONTEXTMENU
Task-number: QTBUG-6474 (cherry picked from commit e8b3defc466fff9110ee00b6e730d405cde52abc)
-rw-r--r--src/gui/statemachine/qguistatemachine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/statemachine/qguistatemachine.cpp b/src/gui/statemachine/qguistatemachine.cpp
index ca73370..8af91ca 100644
--- a/src/gui/statemachine/qguistatemachine.cpp
+++ b/src/gui/statemachine/qguistatemachine.cpp
@@ -186,8 +186,10 @@ static QEvent *cloneEvent(QEvent *e)
case QEvent::DeactivateControl:
return new QEvent(*e);
+#ifndef QT_NO_CONTEXTMENU
case QEvent::ContextMenu:
return new QContextMenuEvent(*static_cast<QContextMenuEvent*>(e));
+#endif
case QEvent::InputMethod:
return new QInputMethodEvent(*static_cast<QInputMethodEvent*>(e));
case QEvent::AccessibilityPrepare: