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

Port to KXMLGUIFactory::showConfigureShortcutsDialog()

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