Verified Commit 7c81eeb8 authored by Luca Beltrame's avatar Luca Beltrame
Browse files

Fixup previous commit and make it backwards-compatible

parent 04134d98
Pipeline #66713 canceled with stage
......@@ -54,6 +54,7 @@ using namespace KCalUtils;
#include <KToggleAction>
#include <KNotifyConfigWidget>
#include <KToolBarPopupAction>
#include <kxmlgui_version.h>
#include <QAction>
#include <QSplitter>
......@@ -1107,7 +1108,11 @@ void MainWindow::slotShowMenubar()
*/
void MainWindow::slotConfigureKeys()
{
#if KXMLGUI_VERSION < QT_VERSION_CHECK(5,83,0)
KShortcutsDialog::configure(actionCollection(), KShortcutsEditor::LetterShortcutsAllowed, this);
#else
KShortcutsDialog::showDialog(actionCollection(), KShortcutsEditor::LetterShortcutsAllowed, true /*isModal*/, this);
#endif
}
/******************************************************************************
......
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