Verified Commit 5e9d402b authored by Luca Beltrame's avatar Luca Beltrame
Browse files

Yet another place with deprecated API

parent c498da69
Pipeline #66720 canceled with stage
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
#include "kleopatra_debug.h" #include "kleopatra_debug.h"
#include <KConfigGroup> #include <KConfigGroup>
#include <KConfigDialog> #include <KConfigDialog>
#include <kxmlgui_version.h>
#include <QAbstractItemView> #include <QAbstractItemView>
#include <QCloseEvent> #include <QCloseEvent>
...@@ -164,7 +165,11 @@ public: ...@@ -164,7 +165,11 @@ public:
} }
void editKeybindings() void editKeybindings()
{ {
KShortcutsDialog::configure(q->actionCollection(), KShortcutsEditor::LetterShortcutsAllowed); #if KXMLGUI_VERSION < QT_VERSION_CHECK(5,84,0)
KShortcutsDialog::configure(actionCollection(), KShortcutsEditor::LetterShortcutsAllowed, this);
#else
KShortcutsDialog::showDialog(actionCollection(), KShortcutsEditor::LetterShortcutsAllowed, true /*isModal*/, this);
#endif
updateSearchBarClickMessage(); updateSearchBarClickMessage();
} }
......
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