Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
a7a674fd
Commit
a7a674fd
authored
Jan 29, 2022
by
Jonas Knarbakk
Committed by
Nate Graham
Mar 14, 2022
Browse files
add showSize property set in InstalledPage.qml
parent
79cb3c2e
Pipeline
#150350
passed with stage
in 1 minute and 56 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
discover/qml/ApplicationDelegate.qml
View file @
a7a674fd
...
...
@@ -18,6 +18,7 @@ Kirigami.AbstractCard
property
alias
application
:
installButton
.
application
property
bool
compact
:
false
property
bool
showRating
:
true
property
bool
showSize
:
false
readonly
property
bool
appIsFromNonDefaultBackend
:
ResourcesModel
.
currentApplicationBackend
!==
application
.
backend
&&
application
.
backend
.
hasApplications
showClickFeedback
:
true
...
...
@@ -164,11 +165,10 @@ Kirigami.AbstractCard
Label
{
id
:
size
Layout.fillWidth
:
true
visible
:
page
.
title
.
includes
(
"
Installed
"
)
&&
!
delegateArea
.
compact
visible
:
showSize
&&
!
delegateArea
.
compact
text
:
visible
?
delegateArea
.
application
.
sizeDescription
:
""
horizontalAlignment
:
Text
.
AlignRight
opacity
:
0.6
;
// Without this check we end up in a binding loop when transitioning from desktop to mobile view in the applications page
text
:
page
.
title
.
includes
(
"
Installed
"
)
&&
!
delegateArea
.
compact
?
delegateArea
.
application
.
sizeDescription
:
""
font
:
Kirigami
.
Theme
.
smallFont
elide
:
Text
.
ElideRight
maximumLineCount
:
1
...
...
discover/qml/ApplicationsListPage.qml
View file @
a7a674fd
...
...
@@ -34,6 +34,7 @@ DiscoverPage {
property
string
sortProperty
:
"
appsListPageSorting
"
property
bool
compact
:
page
.
width
<
550
||
!
applicationWindow
().
wideScreen
property
bool
showRating
:
true
property
bool
showSize
:
false
property
bool
searchPage
:
false
property
bool
canNavigate
:
true
...
...
@@ -152,6 +153,7 @@ DiscoverPage {
application
:
model
.
application
compact
:
!
applicationWindow
().
wideScreen
showRating
:
page
.
showRating
showSize
:
page
.
showSize
}
Item
{
...
...
discover/qml/InstalledPage.qml
View file @
a7a674fd
...
...
@@ -15,6 +15,7 @@ ApplicationsListPage {
name
:
i18n
(
"
Installed
"
)
compact
:
true
showRating
:
false
showSize
:
true
canNavigate
:
false
listHeader
:
null
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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