Commit 532f432d authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Port to KXMLGUIFactory::showConfigureShortcutsDialog()

parent 636c3557
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <QTimer> #include <QTimer>
#include <QUrl> #include <QUrl>
#include <kxmlgui_version.h>
#include <KActionCollection> #include <KActionCollection>
#include <KConfigGroup> #include <KConfigGroup>
#include <KEditToolBar> #include <KEditToolBar>
...@@ -94,7 +95,12 @@ void Kig::setupActions() ...@@ -94,7 +95,12 @@ void Kig::setupActions()
m_recentFilesAction = KStandardAction::openRecent( this, SLOT(openUrl(QUrl)), actionCollection() ); m_recentFilesAction = KStandardAction::openRecent( this, SLOT(openUrl(QUrl)), actionCollection() );
m_recentFilesAction->loadEntries(config->group( QString() ) ); m_recentFilesAction->loadEntries(config->group( QString() ) );
#if KXMLGUI_VERSION >= QT_VERSION_CHECK(5, 84, 0)
KStandardAction::keyBindings(guiFactory(), &KXMLGUIFactory::showConfigureShortcutsDialog, actionCollection());
#else
KStandardAction::keyBindings( guiFactory(), SLOT(configureShortcuts()), actionCollection() ); KStandardAction::keyBindings( guiFactory(), SLOT(configureShortcuts()), actionCollection() );
#endif
KStandardAction::configureToolbars(this, SLOT(optionsConfigureToolbars()), actionCollection()); KStandardAction::configureToolbars(this, SLOT(optionsConfigureToolbars()), actionCollection());
KStandardAction::tipOfDay( this, SLOT(tipOfDay()), actionCollection() ); KStandardAction::tipOfDay( this, SLOT(tipOfDay()), actionCollection() );
......
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