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
Games
KGoldrunner
Commits
0fac3833
Commit
0fac3833
authored
Jun 27, 2021
by
Ahmad Samir
Browse files
Port away from KShortcutsDialog deprecated method
parent
b5994ade
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/kgoldrunner.cpp
View file @
0fac3833
...
...
@@ -850,13 +850,14 @@ void KGoldrunner::readProperties (const KConfigGroup & /* config - unused */)
void
KGoldrunner
::
optionsConfigureKeys
()
{
// First run the standard KDE dialog for shortcut key settings.
KShortcutsDialog
::
configure
(
actionCollection
(),
KShortcutsEditor
::
LetterShortcutsAllowed
,
// Single letters OK.
this
,
// Parent widget.
true
);
// saveSettings value.
gameFreeze
(
frozen
);
// Update the pause/resume text.
auto
*
dlg
=
new
KShortcutsDialog
(
KShortcutsEditor
::
AllActions
,
KShortcutsEditor
::
LetterShortcutsAllowed
,
this
);
dlg
->
addCollection
(
actionCollection
());
dlg
->
setAttribute
(
Qt
::
WA_DeleteOnClose
);
connect
(
dlg
,
&
KShortcutsDialog
::
saved
,
this
,
[
this
]()
{
gameFreeze
(
frozen
);
});
dlg
->
configure
(
true
/* save settings */
);
}
bool
KGoldrunner
::
getDirectories
()
...
...
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