Commit dccb04be authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Show the version together with the source

Makes for an informed choice
parent b6f1d90b
......@@ -73,8 +73,14 @@ DiscoverPage {
allBackends: true
resourcesUrl: appInfo.application.url
}
delegate: Kirigami.BasicListItem {
label: displayOrigin
delegate: Kirigami.AbstractListItem {
RowLayout {
Label {
Layout.fillWidth: true
text: displayOrigin
}
Label { text: availableVersion }
}
checked: appInfo.application == model.application
onClicked: if(index>=0) {
var res = model.application
......
......@@ -58,6 +58,7 @@ ResourcesProxyModel::ResourcesProxyModel(QObject *parent)
{ SectionRole, "section" },
{ MimeTypes, "mimetypes" },
{ LongDescriptionRole, "longDescription" },
{ AvailableVersionRole, "availableVersion" },
{ SizeRole, "size" }
})
, m_currentStream(nullptr)
......
......@@ -75,7 +75,8 @@ public:
SectionRole,
MimeTypes,
SizeRole,
LongDescriptionRole
LongDescriptionRole,
AvailableVersionRole
};
Q_ENUM(Roles)
......
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