Commit 9d690550 authored by Frederik Schwarzer's avatar Frederik Schwarzer

Use KActionCollection::setDefaultShortcut() instead of QAction::setShortcut().

parent 544fa47f
......@@ -152,13 +152,13 @@ void KMahjongg::setupKAction()
QAction *angleccw = actionCollection()->addAction(QStringLiteral("view_angleccw"));
angleccw->setText(i18n("Rotate View Counterclockwise"));
angleccw->setIcon(QIcon::fromTheme(QStringLiteral("object-rotate-left")));
angleccw->setShortcut(Qt::Key_F);
actionCollection()->setDefaultShortcut(angleccw, Qt::Key_F);
connect(angleccw, &QAction::triggered, m_gameView, &GameView::angleSwitchCCW);
QAction *anglecw = actionCollection()->addAction(QStringLiteral("view_anglecw"));
anglecw->setText(i18n("Rotate View Clockwise"));
anglecw->setIcon(QIcon::fromTheme(QStringLiteral("object-rotate-right")));
anglecw->setShortcut(Qt::Key_G);
actionCollection()->setDefaultShortcut(anglecw, Qt::Key_G);
connect(anglecw, &QAction::triggered, m_gameView, &GameView::angleSwitchCW);
m_demoAction = KStandardGameAction::demo(this, SLOT(demoMode()), actionCollection());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment