From fe635f112bec38808dc36357ba601af6f8c26c46 Mon Sep 17 00:00:00 2001 From: "Angelo Mantellini (manangel)" Date: Tue, 6 Jun 2017 14:56:41 +0200 Subject: update libdash Change-Id: Ia2c54574018d8d84c524c7b4da43cb2317d46f0e Signed-off-by: Angelo Mantellini (manangel) --- qml/Viper/OpenMpd.qml | 44 +++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) (limited to 'qml/Viper') diff --git a/qml/Viper/OpenMpd.qml b/qml/Viper/OpenMpd.qml index d821f072..c32fb7d7 100755 --- a/qml/Viper/OpenMpd.qml +++ b/qml/Viper/OpenMpd.qml @@ -55,24 +55,34 @@ Rectangle { return rowMulti * item.Layout.rowSpan } - ComboBox { - z: parent.z + 1 - id: comboBoxList - Layout.rowSpan : 1 - Layout.columnSpan : 2 - Layout.preferredWidth : parent.colMulti * 2 + Utils.scaled(5) //grid.prefWidth(this) - Layout.preferredHeight : parent.rowMulti//grid.prefHeight(this) - - onCurrentIndexChanged: { - } + TextInput { - model: ListModel { - id: mpdItems - ListElement { text: "gastown"; } - ListElement { text: "sintel"; } - } - currentIndex: find(lastPlayed) + id: sourceTextInput + text: lastPlayed + Layout.rowSpan : 1 + Layout.columnSpan : 2 + Layout.preferredWidth : parent.colMulti * 2 + Utils.scaled(5) //grid.prefWidth(this) + Layout.preferredHeight : parent.rowMulti//grid.prefHeight(this) + color: "white" } + // ComboBox { + // z: parent.z + 1 + // id: comboBoxList + // Layout.rowSpan : 1 + // Layout.columnSpan : 2 + // Layout.preferredWidth : parent.colMulti * 2 + Utils.scaled(5) //grid.prefWidth(this) + // Layout.preferredHeight : parent.rowMulti//grid.prefHeight(this) + // + // onCurrentIndexChanged: { + // } + + // model: ListModel { + // id: mpdItems + // ListElement { text: "gastown"; } + // ListElement { text: "sintel"; } + // } + // currentIndex: find(lastPlayed) + //} Button { id: cancelBtn @@ -98,7 +108,7 @@ Rectangle { Layout.preferredHeight : grid.prefHeight(this) text: "Download" onClicked: { - saveAndPlayMpd(mpdItems.get(comboBoxList.currentIndex).text) + saveAndPlayMpd(sourceTextInput.text) closeOpenMpd(); } -- cgit 1.2.3-korg