diff options
Diffstat (limited to 'examples/quickcontrols/contactlist/ContactDelegate.ui.qml')
-rw-r--r-- | examples/quickcontrols/contactlist/ContactDelegate.ui.qml | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/examples/quickcontrols/contactlist/ContactDelegate.ui.qml b/examples/quickcontrols/contactlist/ContactDelegate.ui.qml index 3591b2f3fd..e1e6127bb5 100644 --- a/examples/quickcontrols/contactlist/ContactDelegate.ui.qml +++ b/examples/quickcontrols/contactlist/ContactDelegate.ui.qml @@ -1,4 +1,4 @@ -// Copyright (C) 2017 The Qt Company Ltd. +// Copyright (C) 2023 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause import QtQuick @@ -7,14 +7,18 @@ import QtQuick.Controls ItemDelegate { id: delegate - checkable: true + required property string fullName + required property string address + required property string city + required property string number + contentItem: ColumnLayout { spacing: 10 Label { - text: fullName + text: delegate.fullName font.bold: true elide: Text.ElideRight Layout.fillWidth: true @@ -34,7 +38,7 @@ ItemDelegate { } Label { - text: address + text: delegate.address font.bold: true elide: Text.ElideRight Layout.fillWidth: true @@ -46,7 +50,7 @@ ItemDelegate { } Label { - text: city + text: delegate.city font.bold: true elide: Text.ElideRight Layout.fillWidth: true @@ -58,7 +62,7 @@ ItemDelegate { } Label { - text: number + text: delegate.number font.bold: true elide: Text.ElideRight Layout.fillWidth: true @@ -74,6 +78,7 @@ ItemDelegate { PropertyChanges { // TODO: When Qt Design Studio supports generalized grouped properties, change to: // grid.visible: true + // qmllint disable Quick.property-changes-parsed target: grid visible: true } |