Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
KolourPaint
Commits
cfe3d636
Commit
cfe3d636
authored
Jun 27, 2021
by
Ahmad Samir
Browse files
Port away from deprecated KShortcutsDialog method
parent
e33b2fb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
mainWindow/kpMainWindow_Settings.cpp
View file @
cfe3d636
...
...
@@ -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 */
);
}
//---------------------------------------------------------------------
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment