summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@nokia.com>2009-07-23 08:13:37 (GMT)
committerAndy Shaw <andy.shaw@nokia.com>2009-07-23 08:13:37 (GMT)
commit350f857f116a734ea25f91887999eeb17e064350 (patch)
treea8f6ef59ac5594af5cb0501fb48b81721d1eb749 /src/gui/widgets
parentada4f17c1a1187e74c45aca5082a99ee3aba80c5 (diff)
downloadQt-350f857f116a734ea25f91887999eeb17e064350.zip
Qt-350f857f116a734ea25f91887999eeb17e064350.tar.gz
Qt-350f857f116a734ea25f91887999eeb17e064350.tar.bz2
Ensure all the standard shorcuts are used for the Close Action in MDI
Since there is more than one standard shorcut for closing a MDI window, then ensure that all of them can be used. Task-number: 161999 Reviewed-by: Simon Hausmann
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/qmdisubwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qmdisubwindow.cpp b/src/gui/widgets/qmdisubwindow.cpp
index 24dea37..e8de957 100644
--- a/src/gui/widgets/qmdisubwindow.cpp
+++ b/src/gui/widgets/qmdisubwindow.cpp
@@ -1066,7 +1066,7 @@ void QMdiSubWindowPrivate::createSystemMenu()
addToSystemMenu(CloseAction, QMdiSubWindow::tr("&Close"), SLOT(close()));
actions[CloseAction]->setIcon(style->standardIcon(QStyle::SP_TitleBarCloseButton, 0, q));
#if !defined(QT_NO_SHORTCUT)
- actions[CloseAction]->setShortcut(QKeySequence::Close);
+ actions[CloseAction]->setShortcuts(QKeySequence::Close);
#endif
updateActions();
}