Don't use KConfigDialogManager::changedMap with newer KF

parent aa394022
......@@ -34,6 +34,7 @@
#include <KPluginInfo>
#include <KLocalizedString>
#include <KNS3/Button>
#include <kconfigwidgets_version.h>
// Qt
#include <QDialog>
#include <QDialogButtonBox>
......@@ -46,7 +47,11 @@
StructuresManagerView::StructuresManagerView(Kasten::StructTool* tool, QWidget* parent)
: QWidget(parent), mTool(tool), mStructuresSelector(nullptr), mRebuildingPluginsList(false)
{
// since 5.32 the signal is by default taken as set for the used property
#if KCONFIGWIDGETS_VERSION < QT_VERSION_CHECK(5,32,0)
KConfigDialogManager::changedMap()->insert(QStringLiteral("StructuresManagerView"), SIGNAL(changed(QStringList)));
#endif
mSelectedStructures = Kasten::StructViewPreferences::loadedStructures();
QVBoxLayout* pageLayout = new QVBoxLayout();
......
......@@ -48,7 +48,7 @@ class StructuresManagerView: public QWidget
Q_OBJECT
public:
Q_PROPERTY(QStringList values READ values USER true)
Q_PROPERTY(QStringList values READ values NOTIFY changed USER true)
explicit StructuresManagerView(Kasten::StructTool* manager, QWidget* parent = nullptr);
~StructuresManagerView() override;
......
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