aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-11-17 22:32:53 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2016-11-17 21:55:32 +0000
commitbc45c43ab7cbd9ea53b2636e8751c55e6d3e22fd (patch)
tree15eaa54cb1ed1c0008fb3fbcfece26357dec80c1 /examples/quickcontrols2
parent24135738e48464d5ca633fd5dc304f006fbfe5c1 (diff)
Contact List: cleanup the list view
No clipping, current index, or x-coordinates needed. Change-Id: Ibfb4a8e1159072a84ee229607b28e7f4010eb925 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'examples/quickcontrols2')
-rw-r--r--examples/quickcontrols2/contactlist/MainForm.ui.qml5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/quickcontrols2/contactlist/MainForm.ui.qml b/examples/quickcontrols2/contactlist/MainForm.ui.qml
index 3be33c1f..fdc6dd91 100644
--- a/examples/quickcontrols2/contactlist/MainForm.ui.qml
+++ b/examples/quickcontrols2/contactlist/MainForm.ui.qml
@@ -67,14 +67,12 @@ Page {
ListView {
id: listView
- currentIndex: -1
- boundsBehavior: Flickable.StopAtBounds
- clip: true
focus: true
anchors.fill: parent
section.criteria: ViewSection.FirstCharacter
section.property: "fullName"
snapMode: ListView.SnapToItem
+ boundsBehavior: Flickable.StopAtBounds
section.delegate: SectionDelegate {
width: listView.width
@@ -83,7 +81,6 @@ Page {
delegate: ContactDelegate {
id: delegate
width: listView.width
- x: 5
Connections {
target: delegate.edit