Commit 18fb281c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to KXMLGUIFactory::showConfigureShortcutsDialog()

parent 1e59e8ee
......@@ -22,7 +22,7 @@
#include "kdf.h"
#include "kdf_version.h"
#include <kxmlgui_version.h>
#include <KAboutData>
#include <KXMLGUIFactory>
#include <KStandardShortcut>
......@@ -49,8 +49,12 @@ KDFTopLevel::KDFTopLevel(QWidget *)
KStandardAction::quit(this, &KDFTopLevel::close, actionCollection());
KStandardAction::preferences(kdf, &KDFWidget::settingsBtnClicked, actionCollection());
#if KXMLGUI_VERSION >= QT_VERSION_CHECK(5, 84, 0)
KStandardAction::keyBindings(guiFactory(), &KXMLGUIFactory::showConfigureShortcutsDialog, actionCollection());
#else
KStandardAction::keyBindings(guiFactory(), SLOT(configureShortcuts()),
actionCollection());
#endif
setCentralWidget(kdf);
// kdf->setMinimumSize(kdf->sizeHint());
kdf->resize(kdf->sizeHint());
......
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