From acaf58c3f8f3764f17d5f998c5af8ff5be33f157 Mon Sep 17 00:00:00 2001 From: Andreas Stallinger Date: Thu, 28 Jul 2016 14:12:09 +0200 Subject: [PATCH] ui: Shortcut for Preferences on Linux/Windows --- src/lib_gui/qt/window/QtMainWindow.cpp | 9 +++++++-- web/documentation/index.html | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/lib_gui/qt/window/QtMainWindow.cpp b/src/lib_gui/qt/window/QtMainWindow.cpp index b0fec994..de8869e1 100644 --- a/src/lib_gui/qt/window/QtMainWindow.cpp +++ b/src/lib_gui/qt/window/QtMainWindow.cpp @@ -576,7 +576,12 @@ void QtMainWindow::setupEditMenu() } else { - menu->addAction(tr("&Force Refresh"), this, SLOT(forceRefresh()), QKeySequence(Qt::SHIFT + Qt::CTRL + Qt::Key_R)); + menu->addAction( + tr("&Force Refresh"), + this, + SLOT(forceRefresh()), + QKeySequence(Qt::SHIFT + Qt::CTRL + Qt::Key_R) + ); } } @@ -591,7 +596,7 @@ void QtMainWindow::setupEditMenu() menu->addSeparator(); - menu->addAction(tr("Preferences..."), this, SLOT(openSettings())); + menu->addAction(tr("Preferences..."), this, SLOT(openSettings()), QKeySequence(Qt::CTRL + Qt::Key_Comma)); } void QtMainWindow::setupViewMenu() diff --git a/web/documentation/index.html b/web/documentation/index.html index 23ead133..8ac2a80f 100644 --- a/web/documentation/index.html +++ b/web/documentation/index.html @@ -1046,9 +1046,9 @@ Preferences - + Ctrl + , Cmd + , - + Ctrl + , New Project