diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-11-14 14:58:47 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-11-14 18:35:51 +0000 |
commit | 79af4ec056b6301752ee750f04192d170f9c1823 (patch) | |
tree | 616c7ca0582b95e7b72e751da0b0a1b8abf9056e /tests/manual | |
parent | 2393551665a6dc608aa495d032d7408bd4b38297 (diff) |
Manual dialogs test: Fix shortcut
Fix:
QAction::event: Ambiguous shortcut overload: Ctrl+Q
when pressing CTRL+Q
Amends b5eb850e0deb61ff71e26a5a2d0e070b91306aa2 .
Change-Id: Ie31d5830ea357cd34cdd422e667ceca507c7b53f
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r-- | tests/manual/dialogs/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/dialogs/main.cpp b/tests/manual/dialogs/main.cpp index fc4adebcc0..2676ceeb52 100644 --- a/tests/manual/dialogs/main.cpp +++ b/tests/manual/dialogs/main.cpp @@ -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")); |