Commit 59d2fbf0 authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Port to KShortcutsDialog::showDialog()

parent 74967461
......@@ -19,6 +19,7 @@
#include "trainingconfigwidget.h"
#include "core/lesson.h"
#include <kxmlgui_version.h>
#include <KActionCollection>
#include <KStandardAction>
#include <KHelpMenu>
......@@ -133,7 +134,11 @@ void KTouchContext::showConfigDialog()
void KTouchContext::configureShortcuts()
{
#if KXMLGUI_VERSION >= QT_VERSION_CHECK(5, 84, 0)
KShortcutsDialog::showDialog(m_actionCollection, KShortcutsEditor::LetterShortcutsDisallowed, m_mainWindow);
#else
KShortcutsDialog::configure(m_actionCollection, KShortcutsEditor::LetterShortcutsDisallowed, m_mainWindow);
#endif
}
void KTouchContext::showKeyboardKCM()
......
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