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
Utilities
Filelight
Commits
4cc3e9fc
Verified
Commit
4cc3e9fc
authored
Jun 20, 2021
by
Luca Beltrame
Browse files
Fixup previous commit and make it backwards-compatible
parent
aa8658a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mainWindow.cpp
View file @
4cc3e9fc
...
...
@@ -31,6 +31,7 @@
#include <KShortcutsDialog>
#include <KStandardAction>
#include <KUrlCompletion> //locationbar
#include <kxmlgui_version.h>
#include <QApplication> //setupActions()
#include <QDir>
...
...
@@ -209,8 +210,11 @@ void MainWindow::configToolbars() //slot
void
MainWindow
::
configKeys
()
//slot
{
KShortcutsDialog
::
configure
(
actionCollection
(),
KShortcutsEditor
::
LetterShortcutsAllowed
,
true
/*isModal*/
,
this
);
#if KXMLGUI_VERSION < QT_VERSION_CHECK(5,83,0)
KShortcutsDialog
::
configure
(
actionCollection
(),
KShortcutsEditor
::
LetterShortcutsAllowed
,
this
,
true
);
#else
KShortcutsDialog
::
showDialog
(
actionCollection
(),
KShortcutsEditor
::
LetterShortcutsAllowed
,
true
/*isModal*/
,
this
);
#endif
}
void
MainWindow
::
slotScanFolder
()
...
...
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