Commit 0d2411a3 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

sources: for some reason, QML didn't find the toolTip role anymore on my Neon system

Just take care of it on our end.
parent fb3a2a15
......@@ -205,7 +205,7 @@ DiscoverPage {
}
}
Label {
text: model.display + (toolTip ? " - <i>" + toolTip + "</i>" : "")
text: model.display + (model.toolTip ? " - <i>" + model.toolTip + "</i>" : "")
elide: Text.ElideRight
textFormat: Text.StyledText
Layout.fillWidth: true
......
......@@ -45,6 +45,8 @@ QHash<int, QByteArray> SourcesModel::roleNames() const
{
QHash<int, QByteArray> roles = KConcatenateRowsProxyModel::roleNames();
roles.insert(AbstractSourcesBackend::IdRole, "sourceId");
roles.insert(Qt::DisplayRole, "display");
roles.insert(Qt::ToolTipRole, "toolTip");
roles.insert(SourceNameRole, "sourceName");
roles.insert(SourcesBackend, "sourcesBackend");
roles.insert(ResourcesBackend, "resourcesBackend");
......
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