Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Breeze Style for QQC2
Commits
218b34ca
Commit
218b34ca
authored
Mar 02, 2021
by
Noah Davis
🌵
Browse files
[ListViewHighlight] account for count == 0, set default index to -1
parent
2d431b75
Changes
1
Show whitespace changes
Inline
Side-by-side
style/impl/ListViewHighlight.qml
View file @
218b34ca
...
...
@@ -7,10 +7,10 @@ import org.kde.kirigami 2.14 as Kirigami
Kirigami.ShadowedRectangle
{
id
:
root
property
int
currentIndex
:
0
property
int
currentIndex
:
-
1
property
int
count
:
0
readonly
property
real
topRadius
:
root
.
currentIndex
==
0
?
Kirigami
.
Units
.
smallRadius
:
0
readonly
property
real
bottomRadius
:
root
.
currentIndex
==
root
.
count
-
1
?
Kirigami
.
Units
.
smallRadius
:
0
readonly
property
real
bottomRadius
:
root
.
currentIndex
==
Math
.
max
(
root
.
count
-
1
,
0
)
?
Kirigami
.
Units
.
smallRadius
:
0
Kirigami.Theme.colorSet
:
Kirigami
.
Theme
.
Selection
Kirigami.Theme.inherit
:
false
...
...
Write
Preview
Supports
Markdown
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