Commit a8c92838 authored by jan.koester's avatar jan.koester
Browse files

tet

parent 6b759266
Loading
Loading
Loading
Loading
+3 −0
Changes for editor/qml/SurveyEditorDialog.qml: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -41,6 +41,9 @@ Window {
                editorWin.isNew = false
            }
        }
        function onStatusMessage(msg) {
            editorWin.statusText = msg
        }
    }

    function rebuildQuestionModel() {
+18 −2
Changes for editor/qml/SurveyListDialog.qml: 18 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -32,6 +32,9 @@ Window {
            surveyListWin.statusText = msg
            if (ok) reload()
        }
        function onStatusMessage(msg) {
            surveyListWin.statusText = msg
        }
    }

    ColumnLayout {
@@ -61,6 +64,7 @@ Window {
            Rectangle {
                Layout.fillWidth: true
                Layout.fillHeight: true
                Layout.minimumWidth: 400
                color: "transparent"
                border.color: Theme.border
                border.width: 1
@@ -87,7 +91,7 @@ Window {
                            spacing: 6

                            Label {
                                text: "📋"
                                text: "\uD83D\uDCCB"
                                font.pixelSize: 14
                            }
                            Label {
@@ -110,6 +114,15 @@ Window {
                        }
                    }
                }

                Label {
                    anchors.centerIn: parent
                    visible: surveyListWin.surveyNames.length === 0 && surveyListWin.statusText === ""
                    text: qsTr("No surveys found.\nClick 'Create' to add one.")
                    horizontalAlignment: Text.AlignHCenter
                    font.pixelSize: 13
                    color: Theme.textMuted
                }
            }

            /* Action buttons */
@@ -195,13 +208,16 @@ Window {
        property string surveyName: ""
        title: qsTr("Delete Survey")
        standardButtons: Dialog.Yes | Dialog.No
        anchors.centerIn: parent
        modal: true
        width: 400
        x: (surveyListWin.width - width) / 2
        y: (surveyListWin.height - height) / 2

        Label {
            text: qsTr("Delete survey \"%1\"?").arg(deleteConfirmDialog.surveyName)
            wrapMode: Text.Wrap
            color: Theme.textPrimary
            width: parent.availableWidth
        }

        onAccepted: {