Commit 039e8dd9 authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Port to KXMLGUIFactory::showConfigureShortcutsDialog()

parent 10f843ab
......@@ -13,6 +13,7 @@
#include "registercreateactionmethod.h"
#include "kwalletmanager_debug.h"
#include <kxmlgui_version.h>
#include <KLocalizedString>
#include <QAction>
#include <KConfig>
......@@ -153,8 +154,13 @@ void KWalletManager::configUI() {
_tray->contextMenu()->addAction(act);
}
KStandardAction::quit(this, SLOT(shuttingDown()), actionCollection());
#if KXMLGUI_VERSION >= QT_VERSION_CHECK(5, 84, 0)
KStandardAction::keyBindings(guiFactory(), &KXMLGUIFactory::showConfigureShortcutsDialog, actionCollection());
#else
KStandardAction::keyBindings(guiFactory(), SLOT(configureShortcuts()),
actionCollection());
#endif
setupGUI(Keys | Save | Create, QStringLiteral("kwalletmanager.rc"));
setStandardToolBarMenuEnabled(false);
......
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