Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Discover
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
Discover
Commits
dccb04be
Commit
dccb04be
authored
Jan 26, 2018
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show the version together with the source
Makes for an informed choice
parent
b6f1d90b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
discover/qml/ApplicationPage.qml
discover/qml/ApplicationPage.qml
+8
-2
libdiscover/resources/ResourcesProxyModel.cpp
libdiscover/resources/ResourcesProxyModel.cpp
+1
-0
libdiscover/resources/ResourcesProxyModel.h
libdiscover/resources/ResourcesProxyModel.h
+2
-1
No files found.
discover/qml/ApplicationPage.qml
View file @
dccb04be
...
...
@@ -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
...
...
libdiscover/resources/ResourcesProxyModel.cpp
View file @
dccb04be
...
...
@@ -58,6 +58,7 @@ ResourcesProxyModel::ResourcesProxyModel(QObject *parent)
{
SectionRole
,
"section"
},
{
MimeTypes
,
"mimetypes"
},
{
LongDescriptionRole
,
"longDescription"
},
{
AvailableVersionRole
,
"availableVersion"
},
{
SizeRole
,
"size"
}
})
,
m_currentStream
(
nullptr
)
...
...
libdiscover/resources/ResourcesProxyModel.h
View file @
dccb04be
...
...
@@ -75,7 +75,8 @@ public:
SectionRole
,
MimeTypes
,
SizeRole
,
LongDescriptionRole
LongDescriptionRole
,
AvailableVersionRole
};
Q_ENUM
(
Roles
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment