[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [picmi] src/gui: Fix warning about shortcut
From: Jakob Gruber <jakob.gruber () gmail ! com>
Date: 2015-07-15 13:42:38
Message-ID: E1ZFMxK-0006mw-5Z () scm ! kde ! org
[Download RAW message or body]
Git commit 97084c592a7a4424a390f806327f13f5c84b9eb1 by Jakob Gruber, on behalf of Montel Laurent.
Committed on 15/07/2015 at 09:23.
Pushed by gruber into branch 'master'.
Fix warning about shortcut
M +3 -3 src/gui/mainwindow.cpp
http://commits.kde.org/picmi/97084c592a7a4424a390f806327f13f5c84b9eb1
diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp
index 3c494a7..2c7def0 100644
--- a/src/gui/mainwindow.cpp
+++ b/src/gui/mainwindow.cpp
@@ -67,18 +67,18 @@ void MainWindow::setupActions() {
m_action_solve = KStandardGameAction::solve(this, SLOT(solve()), actionCollection());
/* Prevent the default hint shortcut from overwriting our HJKL vim-like control mapping. */
- m_action_hint->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_I));
+ actionCollection()->setDefaultShortcut(m_action_hint, QKeySequence(Qt::CTRL + Qt::Key_I));
m_action_save_state = actionCollection()->addAction("save-position");
m_action_save_state->setText(i18n("Save Position"));
m_action_save_state->setIcon(QIcon("list-add"));
- m_action_save_state->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_S));
+ actionCollection()->setDefaultShortcut(m_action_save_state, QKeySequence(Qt::CTRL + Qt::Key_S));
connect(m_action_save_state, SIGNAL(triggered()), this, SLOT(saveState()));
m_action_load_state = actionCollection()->addAction("load-position");
m_action_load_state->setText(i18n("Load Position"));
m_action_load_state->setIcon(QIcon("view-refresh"));
- m_action_load_state->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_L));
+ actionCollection()->setDefaultShortcut(m_action_load_state, QKeySequence(Qt::CTRL + Qt::Key_L));
connect(m_action_load_state, SIGNAL(triggered()), this, SLOT(loadState()));
m_status_time = new QLabel;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic