From 7e9b889d0145c2ed5d9df9466d3eb40fa8031ebd Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Wed, 6 Feb 2019 13:01:48 +0100 Subject: [PATCH] Qt: Apply suggested keyboard shortcut fix. Fixes #11735. --- Qt/mainwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Qt/mainwindow.cpp b/Qt/mainwindow.cpp index fbeaf17b1e..30949eb493 100644 --- a/Qt/mainwindow.cpp +++ b/Qt/mainwindow.cpp @@ -494,11 +494,12 @@ void MainWindow::createMenus() ->addEventChecked(&g_Config.iTexFiltering); videoMenu->addSeparator(); // - Screen Size - MenuTree* screenMenu = new MenuTree(this, videoMenu, QT_TR_NOOP("&Screen Size")); + MenuTree* screenMenu = new MenuTree(this, videoMenu, QT_TR_NOOP("&Screen Size")); screenGroup = new MenuActionGroup(this, screenMenu, SLOT(screenGroup_triggered(QAction *)), QStringList() << "1x" << "2x" << "3x" << "4x" << "5x" << "6x" << "7x" << "8x" << "9x" << "10x", - QList() << 1 << 2 << 3 << 4 << 5 << 6 << 7 << 8 << 9 << 10, - QList() << Qt::CTRL + Qt::Key_1 << Qt::CTRL + Qt::Key_2 << Qt::CTRL + Qt::Key_3 << Qt::CTRL + Qt::Key_4); + QList() << 1 << 2 << 3 << 4 << 5 << 6 << 7 << 8 << 9 << 10, + QList() << Qt::CTRL + Qt::Key_1 << Qt::CTRL + Qt::Key_2 << Qt::CTRL + Qt::Key_3 << Qt::CTRL + Qt::Key_4 << Qt::CTRL + Qt::Key_5 + << Qt::CTRL + Qt::Key_6 << Qt::CTRL + Qt::Key_7 << Qt::CTRL + Qt::Key_8 << Qt::CTRL + Qt::Key_9 << Qt::CTRL + Qt::Key_0); MenuTree* displayLayoutMenu = new MenuTree(this, videoMenu, QT_TR_NOOP("&Display Layout Options")); displayLayoutGroup = new MenuActionGroup(this, displayLayoutMenu, SLOT(displayLayoutGroup_triggered(QAction *)),