Commit 11b5d814 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

use proper method to set shortcut

fixes:

kf.xmlgui: Shortcut for action  "show_history" "Show &History" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
parent 6ede51d1
......@@ -211,7 +211,7 @@ void KCalculator::setupMainActions()
action_history_show_ = actionCollection()->add<KToggleAction>(QStringLiteral("show_history"));
action_history_show_->setText(i18n("Show &History"));
action_history_show_->setChecked(true);
action_history_show_->setShortcut(Qt::CTRL | Qt::Key_H);
actionCollection()->setDefaultShortcut(action_history_show_, Qt::CTRL | Qt::Key_H);
connect(action_history_show_, &KToggleAction::toggled, this, &KCalculator::slotHistoryshow);
action_constants_show_ = actionCollection()->add<KToggleAction>(QStringLiteral("show_constants"));
......
Supports Markdown
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