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
System Settings
Commits
9eb9aa44
Commit
9eb9aa44
authored
Sep 25, 2020
by
David Redondo
🏎
Browse files
Don't show an arrow when the category only contains one item
BUG:426731
FIXED-IN:5.20
parent
bfc56dcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
sidebar/package/contents/ui/CategoriesPage.qml
View file @
9eb9aa44
...
...
@@ -171,7 +171,13 @@ Kirigami.ScrollablePage {
Keys.onEnterPressed
:
clicked
();
Keys.onReturnPressed
:
clicked
();
contentItem
:
CategoryItem
{
showArrow
:
model
.
IsCategoryRole
showArrow
:
{
if
(
!
model
.
IsCategoryRole
)
{
return
false
;
}
const
modelIndex
=
delegate
.
ListView
.
view
.
model
.
index
(
index
,
0
)
return
delegate
.
ListView
.
view
.
model
.
rowCount
(
modelIndex
)
>
1
}
selected
:
delegate
.
highlighted
||
delegate
.
pressed
// Only indent subcategory icons in the search view
isSearching
:
searchField
.
text
.
length
>
0
...
...
David Redondo
🏎
@davidre
mentioned in commit
7967ed63
·
Sep 25, 2020
mentioned in commit
7967ed63
mentioned in commit 7967ed6330d6e00686e27e0854ea77dfae8543d5
Toggle commit list
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