Commit 02cebd84 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Port away from deprecated signal QButtonGroup::buttonClicked(int)

parent e4ae5848
......@@ -45,7 +45,12 @@ InvisibleButtonGroup::InvisibleButtonGroup(QWidget* parent)
hide();
d->mGroup = new QButtonGroup(this);
d->mGroup->setExclusive(true);
connect(d->mGroup, QOverload<int>::of(&QButtonGroup::buttonClicked), this, &InvisibleButtonGroup::selectionChanged);
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
connect(d->mGroup, &QButtonGroup::idClicked,
#else
connect(d->mGroup, QOverload<int>::of(&QButtonGroup::buttonClicked),
#endif
this, &InvisibleButtonGroup::selectionChanged);
const QString name = QString::fromLatin1(metaObject()->className());
if (!KConfigDialogManager::propertyMap()->contains(name)) {
KConfigDialogManager::propertyMap()->insert(name, "current");
......
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