aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/qmldesigner/collectionEditorQmlSource/CollectionDetailsView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/qmldesigner/collectionEditorQmlSource/CollectionDetailsView.qml')
-rw-r--r--share/qtcreator/qmldesigner/collectionEditorQmlSource/CollectionDetailsView.qml20
1 files changed, 20 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/collectionEditorQmlSource/CollectionDetailsView.qml b/share/qtcreator/qmldesigner/collectionEditorQmlSource/CollectionDetailsView.qml
index e9bdfdc675a..84a3f7f0d10 100644
--- a/share/qtcreator/qmldesigner/collectionEditorQmlSource/CollectionDetailsView.qml
+++ b/share/qtcreator/qmldesigner/collectionEditorQmlSource/CollectionDetailsView.qml
@@ -361,6 +361,24 @@ Rectangle {
}
Component {
+ id: checkBoxComponent
+
+ StudioControls.CheckBox {
+ id: checkBoxDelegate
+
+ readonly property bool editValue: edit
+
+ text: ""
+ actionIndicatorVisible: false
+ checked: checkBoxDelegate.editValue
+ onCheckedChanged: {
+ if (checkBoxDelegate.editValue !== checkBoxDelegate.checked)
+ edit = checkBoxDelegate.checked
+ }
+ }
+ }
+
+ Component {
id: colorEditorComponent
ColorViewDelegate {}
@@ -369,6 +387,8 @@ Rectangle {
function resetSource() {
if (columnType === CollectionDetails.DataType.Color)
cellContentLoader.sourceComponent = colorEditorComponent
+ else if (columnType === CollectionDetails.DataType.Boolean)
+ cellContentLoader.sourceComponent = checkBoxComponent
else
cellContentLoader.sourceComponent = cellText
}