summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-01-05 08:55:46 +0100
committerMontel Laurent <[email protected]>2015-01-05 08:55:46 +0100
commite426caac3a0d36273640db4554189f1b845f6c13 (patch)
tree9f858c3aadbff0add719de24b246af64cd8623a5
parentf9e253661b911cd18ecbd42367c2e57df85b869a (diff)
Fix shortcut
-rw-r--r--src/kgoldrunner.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kgoldrunner.cpp b/src/kgoldrunner.cpp
index 076e8cf..cdc8c2f 100644
--- a/src/kgoldrunner.cpp
+++ b/src/kgoldrunner.cpp
@@ -225,7 +225,7 @@ void KGoldrunner::setupActions()
actionCollection()->addAction (saveGame->objectName(), saveGame);
gameMapper->setMapping (saveGame, SAVE_GAME);
saveGame->setText (i18n ("&Save Game..."));
- saveGame->setShortcut (Qt::Key_S); // Alternate key.
+ actionCollection()->setDefaultShortcut(saveGame, Qt::Key_S); // Alternate key.
// Pause
// Show High Scores
@@ -589,7 +589,7 @@ QAction * KGoldrunner::gameAction (const QString & name,
ga->setToolTip (toolTip);
ga->setWhatsThis (whatsThis);
if (! key.isEmpty()) {
- ga->setShortcut (key);
+ actionCollection()->setDefaultShortcut(ga, key);
}
connect (ga, SIGNAL (triggered(bool)), tempMapper, SLOT (map()));
tempMapper->setMapping (ga, code);
@@ -650,7 +650,7 @@ void KGoldrunner::keyControl (const QString & name, const QString & text,
{
QAction * a = actionCollection()->addAction (name);
a->setText (text);
- a->setShortcut (shortcut);
+ actionCollection()->setDefaultShortcut(a, shortcut);
// If this is a move-key, let keyPressEvent() through, instead of signal.
if (mover) {