Verified Commit edfd0783 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

ModulesModel: Remove default roleNames

Fixes compatibility with < Qt 5.15
+ we are not using the default roles anyway.
parent 522fca3a
Pipeline #29820 passed with stage
in 9 minutes and 56 seconds
......@@ -98,14 +98,12 @@ int ModulesModel::rowCount(const QModelIndex& parent) const
QHash<int, QByteArray> ModulesModel::roleNames() const
{
auto names = QAbstractItemModel::roleNames();
names.insert({
return {
{NameRole, "name"},
{DescriptionRole, "description"},
{IconNameRole, "iconName"},
{KcmRole, "kcm"}
});
return names;
};
}
KQuickAddons::ConfigModule *ModulesModel::instantiateKcm(const QString& name) const
......
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