Fixing ObjectAddOnContactPerson.qml conflict
This commit is contained in:
@@ -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
|
||||
@@ -248,7 +267,6 @@ GridLayout
|
||||
header: headline
|
||||
highlight: Rectangle { color: "grey"}
|
||||
highlightFollowsCurrentItem: false
|
||||
|
||||
onActiveFocusChanged: if(!focus) currentIndex = -1
|
||||
delegate: Item
|
||||
{
|
||||
@@ -263,6 +281,17 @@ GridLayout
|
||||
contactView.highlightFollowsCurrentItem = true
|
||||
}
|
||||
}
|
||||
MouseArea
|
||||
{
|
||||
id: clickedRow
|
||||
anchors.fill: parent
|
||||
onClicked:
|
||||
{
|
||||
//var currentIndex = index
|
||||
console.log(index)
|
||||
console.log(contactView.currentItem.y)
|
||||
}
|
||||
}
|
||||
|
||||
Row
|
||||
{
|
||||
@@ -297,6 +326,8 @@ GridLayout
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user