aboutsummaryrefslogtreecommitdiffstats
path: root/examples/controls/gallery/pages/DelegatePage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/controls/gallery/pages/DelegatePage.qml')
-rw-r--r--examples/controls/gallery/pages/DelegatePage.qml15
1 files changed, 14 insertions, 1 deletions
diff --git a/examples/controls/gallery/pages/DelegatePage.qml b/examples/controls/gallery/pages/DelegatePage.qml
index 049ba00c..741fc01e 100644
--- a/examples/controls/gallery/pages/DelegatePage.qml
+++ b/examples/controls/gallery/pages/DelegatePage.qml
@@ -47,7 +47,8 @@ Pane {
property var delegateComponentMap: {
"ItemDelegate": itemDelegateComponent,
- "SwipeDelegate": swipeDelegateComponent
+ "SwipeDelegate": swipeDelegateComponent,
+ "CheckDelegate": checkDelegateComponent
}
Component {
@@ -90,6 +91,15 @@ Pane {
}
}
+ Component {
+ id: checkDelegateComponent
+
+ CheckDelegate {
+ text: labelText
+ width: parent.width
+ }
+ }
+
ColumnLayout {
id: column
spacing: 40
@@ -115,6 +125,9 @@ Pane {
ListElement { type: "SwipeDelegate"; text: "SwipeDelegate" }
ListElement { type: "SwipeDelegate"; text: "SwipeDelegate" }
ListElement { type: "SwipeDelegate"; text: "SwipeDelegate" }
+ ListElement { type: "CheckDelegate"; text: "CheckDelegate" }
+ ListElement { type: "CheckDelegate"; text: "CheckDelegate" }
+ ListElement { type: "CheckDelegate"; text: "CheckDelegate" }
}
section.property: "type"