Commit f354f2f9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile with last api

parent d72b3073
Pipeline #66768 passed with stage
in 5 minutes and 24 seconds
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <QAction> #include <QAction>
#include <QMenuBar> #include <QMenuBar>
#include <QPointer> #include <QPointer>
#include <kxmlgui_version.h>
#ifdef WITH_KUSERFEEDBACK #ifdef WITH_KUSERFEEDBACK
#include "userfeedback/userfeedbackmanager.h" #include "userfeedback/userfeedbackmanager.h"
#include <KUserFeedback/NotificationPopup> #include <KUserFeedback/NotificationPopup>
...@@ -107,9 +108,15 @@ void MainWindow::configure() ...@@ -107,9 +108,15 @@ void MainWindow::configure()
void MainWindow::configureKeyBindings() void MainWindow::configureKeyBindings()
{ {
#if KXMLGUI_VERSION < QT_VERSION_CHECK(5, 84, 0)
if (KShortcutsDialog::configure(actionCollection(), KShortcutsEditor::LetterShortcutsAllowed, this)) { if (KShortcutsDialog::configure(actionCollection(), KShortcutsEditor::LetterShortcutsAllowed, this)) {
mMainWidget->updateQuickSearchText(); mMainWidget->updateQuickSearchText();
} }
#else
KShortcutsDialog::showDialog(actionCollection(), KShortcutsEditor::LetterShortcutsAllowed, /*isModal*/ true, this);
// We can't detect if we accepted or not => update quick search all the time. Perhaps in the future we will have a signal.
mMainWidget->updateQuickSearchText();
#endif
} }
void MainWindow::configureToolbars() void MainWindow::configureToolbars()
......
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