From f0c8b93a222cef93f42054280fd31ea7c639b8b4 Mon Sep 17 00:00:00 2001 From: lordwelch Date: Wed, 20 Apr 2016 10:45:52 -0700 Subject: [PATCH] add text area and comboboxes --- qml/songEdit.qml | 98 +++++++++++++++++++++++++++++------------------- 1 file changed, 60 insertions(+), 38 deletions(-) mode change 100644 => 100755 qml/songEdit.qml diff --git a/qml/songEdit.qml b/qml/songEdit.qml old mode 100644 new mode 100755 index 8a4df2f..3bc8d6f --- a/qml/songEdit.qml +++ b/qml/songEdit.qml @@ -39,14 +39,32 @@ ApplicationWindow { } } } - + GroupBox { + anchors.top: parent + anchors.bottom: textArea + ComboBox { + id: verseSelector + model: ["V1", "V2"] + anchors.left: parent + anchors.right: imageSelector + anchors.top: parent + anchors.bottom: parent + } + ComboBox { + id: imageSelector + anchors.left: verseSelector + anchors.right: parent + anchors.top: parent + anchors.bottom: parent + } + } SplitView { + ListView { - width: 180; height: 200 + width: 180 + height: 200 boundsBehavior: Flickable.StopAtBounds - - model: ListModel { ListElement { name: "v1" @@ -63,45 +81,49 @@ ApplicationWindow { ListElement { name: "v5" } - ListElement { - name: "v6" - } - ListElement { - name: "v7" - } - ListElement { - name: "v8" - } - ListElement { - name: "v9" - } - ListElement { - name: "v10" - } - ListElement { - name: "v11" - } - ListElement { - name: "v12" - } - ListElement { - name: "v13" - } - ListElement { - name: "v14" - } - ListElement { - name: "v15" - } } delegate: Component { id: contactsDelegate - Text { - id: contactInfo - text: name - } + Text { + id: contactInfo + text: name + } + } + focus: true + } + ListView { + width: 180 + height: 200 + boundsBehavior: Flickable.StopAtBounds + + model: ListModel { + ListElement { + name: "v1" + } + ListElement { + name: "v2" + } + ListElement { + name: "v3" + } + ListElement { + name: "v4" + } + ListElement { + name: "v5" + } + } + delegate: Component { + id: contactsDelegate1 + Text { + id: contactInfo + text: name + } } focus: true } } + TextArea { + id: textArea + } }