Build correctly on Qt5

This commit is contained in:
Tomaz Canabrava
2023-10-07 21:14:23 +02:00
committed by Christoph Cullmann
parent 3469c9dfdf
commit 36ed122973

View File

@@ -62,7 +62,11 @@ void ProfileReader::readProperties(const KConfig &config, Profile::Ptr profile)
const QString name(QLatin1String(info.name));
if (group.hasKey(name)) {
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
profile->setProperty(info.property, group.readEntry(name, QVariant(info.defaultValue.type())));
#else
profile->setProperty(info.property, group.readEntry(name, QVariant(info.defaultValue.metaType())));
#endif
}
}
}