summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DownloadFromDiveComputer.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-16 21:50:28 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-16 21:53:44 -0700
commit40223c8a5fb921efdc237528c0aa9fff54899b35 (patch)
tree69a695e2382534f982fa3904e425b387e7edbfcc /mobile-widgets/qml/DownloadFromDiveComputer.qml
parenta4f045abaa625db4780f915ab57ed3edc89bf000 (diff)
downloadsubsurface-40223c8a5fb921efdc237528c0aa9fff54899b35.tar.gz
QML UI: show the connection choices in Download UI
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml')
-rw-r--r--mobile-widgets/qml/DownloadFromDiveComputer.qml14
1 files changed, 13 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index b7f000a46..d57068522 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -26,7 +26,7 @@ Kirigami.Page {
deviceData.product : comboProduct.currentText
//TODO: make this dynamic?
- deviceData.devName : "/tmp/ttyS1"
+ deviceData.devName : comboConnection.currentText
//TODO: Make this the default on the C++
deviceData.bluetoothMode : isBluetooth.checked
@@ -82,10 +82,22 @@ Kirigami.Page {
Layout.fillWidth: true
model: null
currentIndex: productidx
+ onCurrentTextChanged: {
+ comboConnection.currentIndex = downloadThread.data().getMatchingAddress(comboVendor.currentText, currentText)
+ }
+
onModelChanged: {
currentIndex = productidx
}
}
+ Kirigami.Label { text: qsTr(" Connection:") }
+ ComboBox {
+ id: comboConnection
+ Layout.fillWidth: true
+ model: connectionListModel
+ currentIndex: -1
+ }
+
Kirigami.Label { text: btEnabled ? qsTr("Bluetooth download:") : qsTr("No Bluetooth support detected")}
CheckBox {
id: isBluetooth