Commit 1b64cb51 authored by jan.koester's avatar jan.koester
Browse files

test

parent 1a9034a3
Loading
Loading
Loading
Loading
+3 −7
Changes for client/qml/PublishDialog.qml: 3 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -77,7 +77,6 @@ Dialog {
                    model: []

                    delegate: ColumnLayout {
                        id: fieldDelegate
                        Layout.fillWidth: true
                        spacing: 2

@@ -96,13 +95,12 @@ Dialog {
                            active: fieldDef.type === "text" || fieldDef.type === "textarea" || fieldDef.type === undefined
                            visible: active
                            sourceComponent: TextField {
                                id: textInput
                                text: fieldDef.defaultValue || ""
                                placeholderText: fieldDef.placeholder || ""
                                font.pixelSize: 13; color: Theme.textPrimary
                                background: Rectangle { color: Theme.bgTertiary; border.color: Theme.border; radius: Theme.radius }
                                Component.onCompleted: fieldDelegate.fieldControl = textInput
                            }
                            onLoaded: parent.fieldControl = item
                        }

                        /* select field */
@@ -111,7 +109,6 @@ Dialog {
                            active: fieldDef.type === "select"
                            visible: active
                            sourceComponent: ComboBox {
                                id: selectInput
                                model: fieldDef.options || []
                                textRole: "label"
                                valueRole: "value"
@@ -119,8 +116,8 @@ Dialog {
                                palette.text: Theme.textPrimary
                                palette.buttonText: Theme.textPrimary
                                background: Rectangle { color: Theme.bgTertiary; border.color: Theme.border; radius: Theme.radius }
                                Component.onCompleted: fieldDelegate.fieldControl = selectInput
                            }
                            onLoaded: parent.fieldControl = item
                        }

                        /* checkbox field */
@@ -129,7 +126,6 @@ Dialog {
                            active: fieldDef.type === "checkbox"
                            visible: active
                            sourceComponent: CheckBox {
                                id: checkInput
                                checked: fieldDef.defaultValue === true || fieldDef.defaultValue === "true"
                                text: fieldDef.label || fieldDef.key
                                contentItem: Text {
@@ -137,8 +133,8 @@ Dialog {
                                    leftPadding: parent.indicator.width + 4
                                    verticalAlignment: Text.AlignVCenter
                                }
                                Component.onCompleted: fieldDelegate.fieldControl = checkInput
                            }
                            onLoaded: parent.fieldControl = item
                        }
                    }
                }