Commit 080ef0b3 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Port away from deprecated KConfigDialogManager::propertyMap()/changedMap()

parent e16e8e1b
...@@ -25,9 +25,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA ...@@ -25,9 +25,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA
#include <QAbstractButton> #include <QAbstractButton>
#include <QButtonGroup> #include <QButtonGroup>
// KDE
#include <KConfigDialogManager>
// Local // Local
namespace Gwenview namespace Gwenview
...@@ -51,11 +48,6 @@ InvisibleButtonGroup::InvisibleButtonGroup(QWidget* parent) ...@@ -51,11 +48,6 @@ InvisibleButtonGroup::InvisibleButtonGroup(QWidget* parent)
connect(d->mGroup, QOverload<int>::of(&QButtonGroup::buttonClicked), connect(d->mGroup, QOverload<int>::of(&QButtonGroup::buttonClicked),
#endif #endif
this, &InvisibleButtonGroup::selectionChanged); this, &InvisibleButtonGroup::selectionChanged);
const QString name = QString::fromLatin1(metaObject()->className());
if (!KConfigDialogManager::propertyMap()->contains(name)) {
KConfigDialogManager::propertyMap()->insert(name, "current");
KConfigDialogManager::changedMap()->insert(name, SIGNAL(selectionChanged(int)));
}
} }
InvisibleButtonGroup::~InvisibleButtonGroup() InvisibleButtonGroup::~InvisibleButtonGroup()
......
...@@ -78,7 +78,7 @@ struct InvisibleButtonGroupPrivate; ...@@ -78,7 +78,7 @@ struct InvisibleButtonGroupPrivate;
class GWENVIEWLIB_EXPORT InvisibleButtonGroup : public QWidget class GWENVIEWLIB_EXPORT InvisibleButtonGroup : public QWidget
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(int current READ selected WRITE setSelected) Q_PROPERTY(int current READ selected WRITE setSelected NOTIFY selectionChanged USER true)
public: public:
explicit InvisibleButtonGroup(QWidget* parent = nullptr); explicit InvisibleButtonGroup(QWidget* parent = nullptr);
~InvisibleButtonGroup() override; ~InvisibleButtonGroup() 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