Configuration menu entry

This commit is contained in:
2025-02-26 09:12:34 +01:00
parent b468c3d078
commit 0f253c518d
7 changed files with 169 additions and 6 deletions

View File

@@ -161,6 +161,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
{
Layout.fillWidth: true
@@ -170,16 +189,36 @@ GridLayout
ListView
{
id: contactView
implicitHeight: parent.height
implicitHeight: 500
implicitWidth: parent.width
model: contactModel
header: headline
highlight: highlight
highlightFollowsCurrentItem: true
focus: true
delegate: Item
{
width: parent.width
//width: parent.width
width: contactView.width
height: 15
MouseArea
{
id: clickedRow
anchors.fill: parent
onClicked:
{
//var currentIndex = index
console.log(index)
console.log(contactView.currentItem.y)
}
}
Row
{
//spacing: 9
@@ -203,6 +242,8 @@ GridLayout
}
}
}
}
}
}