Manual dialogs test: Fix shortcut
Fix:
QAction::event: Ambiguous shortcut overload: Ctrl+Q
when pressing CTRL+Q
Amends b5eb850e0d
.
Change-Id: Ie31d5830ea357cd34cdd422e667ceca507c7b53f
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
This commit is contained in:
parent
2393551665
commit
79af4ec056
@ -94,7 +94,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
|
||||
connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));
|
||||
QMenu *editMenu = menuBar()->addMenu(tr("&Edit"));
|
||||
QAction *action = editMenu->addAction(tr("Cut"));
|
||||
action->setShortcut(QKeySequence(QKeySequence::Quit));
|
||||
action->setShortcut(QKeySequence(QKeySequence::Cut));
|
||||
action = editMenu->addAction(tr("Copy"));
|
||||
action->setShortcut(QKeySequence(QKeySequence::Copy));
|
||||
action = editMenu->addAction(tr("Paste"));
|
||||
|
Loading…
Reference in New Issue
Block a user