summaryrefslogtreecommitdiffstats
path: root/src/gui/statemachine
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2009-11-06 09:28:52 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2009-11-06 12:17:01 (GMT)
commit628a0d9d54f50a9e75cb8f26e4927231a2130e84 (patch)
tree160ab411b5f7b9096826fce5cdc49dda0ab5bff2 /src/gui/statemachine
parent4bbcfc85eb69f7a04b1ec4264ded855be0df46d7 (diff)
downloadQt-628a0d9d54f50a9e75cb8f26e4927231a2130e84.zip
Qt-628a0d9d54f50a9e75cb8f26e4927231a2130e84.tar.gz
Qt-628a0d9d54f50a9e75cb8f26e4927231a2130e84.tar.bz2
Fix QT_NO_SHORTCUT
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
Diffstat (limited to 'src/gui/statemachine')
-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 68f737a..4db10ca 100644
--- a/src/gui/statemachine/qguistatemachine.cpp
+++ b/src/gui/statemachine/qguistatemachine.cpp
@@ -255,8 +255,10 @@ static QEvent *cloneEvent(QEvent *e)
case QEvent::FileOpen:
return new QFileOpenEvent(*static_cast<QFileOpenEvent*>(e));
+#ifndef QT_NO_SHORTCUT
case QEvent::Shortcut:
return new QShortcutEvent(*static_cast<QShortcutEvent*>(e));
+#endif //QT_NO_SHORTCUT
case QEvent::ShortcutOverride:
return new QKeyEvent(*static_cast<QKeyEvent*>(e));