mirror of
https://github.com/KDE/konsole.git
synced 2025-12-23 23:38:08 -05:00
Build correctly on Qt5
This commit is contained in:
committed by
Christoph Cullmann
parent
3469c9dfdf
commit
36ed122973
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user