Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
KDiskFree
Commits
18fb281c
Commit
18fb281c
authored
Jun 30, 2021
by
Laurent Montel
Browse files
Port to KXMLGUIFactory::showConfigureShortcutsDialog()
parent
1e59e8ee
Changes
1
Show whitespace changes
Inline
Side-by-side
src/kdf.cpp
View file @
18fb281c
...
...
@@ -22,7 +22,7 @@
#include
"kdf.h"
#include
"kdf_version.h"
#include
<kxmlgui_version.h>
#include
<KAboutData>
#include
<KXMLGUIFactory>
#include
<KStandardShortcut>
...
...
@@ -49,8 +49,12 @@ KDFTopLevel::KDFTopLevel(QWidget *)
KStandardAction
::
quit
(
this
,
&
KDFTopLevel
::
close
,
actionCollection
());
KStandardAction
::
preferences
(
kdf
,
&
KDFWidget
::
settingsBtnClicked
,
actionCollection
());
#if KXMLGUI_VERSION >= QT_VERSION_CHECK(5, 84, 0)
KStandardAction
::
keyBindings
(
guiFactory
(),
&
KXMLGUIFactory
::
showConfigureShortcutsDialog
,
actionCollection
());
#else
KStandardAction
::
keyBindings
(
guiFactory
(),
SLOT
(
configureShortcuts
()),
actionCollection
());
#endif
setCentralWidget
(
kdf
);
// kdf->setMinimumSize(kdf->sizeHint());
kdf
->
resize
(
kdf
->
sizeHint
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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