Changeset c8c56b37 in subsurface


Ignore:
Timestamp:
May 29, 2017, 3:11:11 PM (7 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
c05fe9f
Parents:
18eff8f
Message:

QML UI: populate dive computer vendor and product

If we detected a BT dive computer, we can already set up the vendor and
product for it (as well as the new BT checkbox).

Oddly, in my tests this doesn't set up the product correctly.

Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mobile-widgets/qml/DownloadFromDiveComputer.qml

    rb9ac633 rc8c56b37  
    2727
    2828                //TODO: Make this the default on the C++
    29                 deviceData.bluetoothMode : false
     29                deviceData.bluetoothMode : isBluetooth.checked
    3030                deviceData.forceDownload : false
    3131                deviceData.createNewTrip : false
     
    5858                                Layout.fillWidth: true
    5959                                model: vendorList
     60                                currentIndex: manager.getVendorIndex()
    6061                        }
    6162                        Kirigami.Label { text: qsTr(" Dive Computer:") }
     
    6465                                Layout.fillWidth: true
    6566                                model: manager.getDCListFromVendor(comboVendor.currentText)
     67                                currentIndex: manager.getProductIndex()
     68                        }
     69                        Kirigami.Label { text: qsTr("Bluetooth download:") }
     70                        CheckBox {
     71                                id: isBluetooth
     72                                checked: manager.getVendorIndex() != -1
    6673                        }
    6774                }
Note: See TracChangeset for help on using the changeset viewer.