This commit is contained in:
2025-02-26 15:15:39 +01:00
parent 7228d5fae9
commit 2a09fed57a
12 changed files with 293 additions and 29 deletions

View File

@@ -231,6 +231,25 @@ GridLayout
}
}
Component
{
id: highlight
Rectangle
{
width: 230; height: 15
color: "lightsteelblue"; radius: 5
y: contactView.currentItem.y
Behavior on y
{
SpringAnimation
{
spring: 3
damping: 0.2
}
}
}
}
Rectangle
{
id: mainRect
@@ -242,6 +261,7 @@ GridLayout
ListView
{
id: contactView
implicitHeight: parent.height
implicitWidth: parent.width
model: contactModel
@@ -249,10 +269,13 @@ GridLayout
highlight: Rectangle { color: "grey"}
highlightFollowsCurrentItem: false
onActiveFocusChanged: if(!focus) currentIndex = -1
delegate: Item
{
width: contactView.width
height: 15
MouseArea
{
@@ -264,6 +287,7 @@ GridLayout
}
}
Row
{
//spacing: 9
@@ -297,6 +321,8 @@ GridLayout
}
}
}
}
}
}