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
#include <QAbstractButton>
#include <QButtonGroup>
// KDE
#include <KConfigDialogManager>
// Local
namespace Gwenview
......@@ -51,11 +48,6 @@ InvisibleButtonGroup::InvisibleButtonGroup(QWidget* parent)
connect(d->mGroup, QOverload<int>::of(&QButtonGroup::buttonClicked),
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)));
......@@ -78,7 +78,7 @@ struct InvisibleButtonGroupPrivate;
class GWENVIEWLIB_EXPORT InvisibleButtonGroup : public QWidget
Q_PROPERTY(int current READ selected WRITE setSelected)
Q_PROPERTY(int current READ selected WRITE setSelected NOTIFY selectionChanged USER true)
explicit InvisibleButtonGroup(QWidget* parent = nullptr);
~InvisibleButtonGroup() override;
Supports Markdown
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