Commit cfe3d636 authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Port away from deprecated KShortcutsDialog method

parent e33b2fb6
......@@ -149,12 +149,13 @@ void kpMainWindow::slotKeyBindings ()
{
toolEndShape ();
if (KShortcutsDialog::configure (actionCollection (),
KShortcutsEditor::LetterShortcutsAllowed,
this))
{
// TODO: PROPAGATE: thru mainWindow's and interprocess
}
auto *dlg = new KShortcutsDialog(KShortcutsEditor::AllActions, KShortcutsEditor::LetterShortcutsAllowed, this);
dlg->setAttribute(Qt::WA_DeleteOnClose);
dlg->addCollection(actionCollection());
// TODO: PROPAGATE: through mainWindow's and interprocess, by connecting to
// KShortcutsDialog::saved() signal
dlg->configure(true /* save settings */);
}
//---------------------------------------------------------------------
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