issue #0002631: Ctrl-W Doesn't Close Window

This commit is contained in:
wmayer
2016-10-20 09:46:28 +02:00
parent 3e82b3b10d
commit 6b1866ccaf
2 changed files with 15 additions and 3 deletions

View File

@@ -138,9 +138,10 @@ StdCmdCloseActiveWindow::StdCmdCloseActiveWindow()
sToolTipText = QT_TR_NOOP("Close active window");
sWhatsThis = QT_TR_NOOP("Close active window");
sStatusTip = QT_TR_NOOP("Close active window");
// CTRL+F4 is already set by an QMdiSubWindow and thus we must use the
// alternative CTRL+W here to avoid an ambiguous shortcut overload
sAccel = "Ctrl+W";
// In QMdiSubWindow the 'QKeySequence::Close' shortcut is set which will
// collide with this shortcut. Thus the shortcut of QMdiSubWindow will be
// reset in MainWindow::addWindow() (#0002631)
sAccel = keySequenceToAccel(QKeySequence::Close);
eType = 0;
}