Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Leander Schulten
Lichtsteuerung
Commits
00485aff
Commit
00485aff
authored
Oct 07, 2019
by
Leander Schulten
Browse files
UI: LoginView: Only highlight the currently logged in user
parent
622a2766
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/qml/LoginView.qml
View file @
00485aff
...
...
@@ -18,12 +18,8 @@ Item{
highlightMoveDuration
:
100
highlightResizeDuration
:
100
model
:
userModel
highlight
:
Rectangle
{
color
:
"
lightblue
"
}
highlightFollowsCurrentItem
:
true
delegate
:
SwipeDelegate
{
delegate
:
SwipeDelegate
{
swipe.left
:
Label
{
id
:
deleteLabel
text
:
qsTr
(
"
Delete
"
)
...
...
@@ -55,7 +51,7 @@ Item{
clip
:
true
width
:
parent
.
width
Component.onCompleted
:
{
background
.
color
=
Qt
.
binding
(
function
(){
return
UserManagment
.
currentUser
===
modelData
?
"
lightblue
"
:
"
white
"
;});
background
.
color
=
Qt
.
binding
(
function
(){
return
UserManagment
.
currentUser
===
modelData
?
"
lightblue
"
:
"
transparent
"
;});
}
Behavior
on
height
{
NumberAnimation
{
...
...
@@ -110,7 +106,6 @@ Item{
}
}
}
onClicked
:
listView
.
currentIndex
=
index
}
}
...
...
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