Configuration menu entry
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user