diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2010-01-06 12:08:25 (GMT) |
---|---|---|
committer | Kent Hansen <kent.hansen@nokia.com> | 2010-01-06 12:10:25 (GMT) |
commit | e8b3defc466fff9110ee00b6e730d405cde52abc (patch) | |
tree | 7099edcce423aea2351f5a26163141c9c531273c /src/gui/statemachine/qguistatemachine.cpp | |
parent | 53817ebe67158d642fd5d85dfdcf4d96e91b093b (diff) | |
download | Qt-e8b3defc466fff9110ee00b6e730d405cde52abc.zip Qt-e8b3defc466fff9110ee00b6e730d405cde52abc.tar.gz Qt-e8b3defc466fff9110ee00b6e730d405cde52abc.tar.bz2 |
Fix QT_NO_CONTEXTMENU
Task-number: QTBUG-6474
Diffstat (limited to 'src/gui/statemachine/qguistatemachine.cpp')
-rw-r--r-- | src/gui/statemachine/qguistatemachine.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/statemachine/qguistatemachine.cpp b/src/gui/statemachine/qguistatemachine.cpp index 4f7806f..c3a9228 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: |