Changeset 052be69 in subsurface


Ignore:
Timestamp:
Apr 14, 2017, 5:33:11 PM (5 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
cc6c41c8
Parents:
6a50efd
git-author:
Dirk Hohndel <dirk@…> (04/14/17 17:09:09)
git-committer:
Dirk Hohndel <dirk@…> (04/14/17 17:33:11)
Message:

QML UI: reset completion fields when adding dive

Otherwise the last value in those fields might still be shown.

Also, set up the cylinder completion.

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

Location:
mobile-widgets/qml
Files:
3 edited

Legend:

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

    r751626e r052be69  
    1616        property alias watertemp: detailsEdit.watertempText
    1717        property alias buddyIndex: detailsEdit.buddyIndex
     18        property alias buddyText: detailsEdit.buddyText
    1819        property alias buddyModel: detailsEdit.buddyModel
    1920        property alias divemasterIndex: detailsEdit.divemasterIndex
     21        property alias divemasterText: detailsEdit.divemasterText
    2022        property alias divemasterModel: detailsEdit.divemasterModel
    2123        property alias depth: detailsEdit.depthText
     
    2527        property alias notes: detailsEdit.notesText
    2628        property alias suitIndex: detailsEdit.suitIndex
     29        property alias suitText: detailsEdit.suitText
    2730        property alias suitModel: detailsEdit.suitModel
    2831        property alias weight: detailsEdit.weightText
     
    3033        property alias endpressure: detailsEdit.endpressureText
    3134        property alias cylinderIndex: detailsEdit.cylinderIndex
     35        property alias cylinderText: detailsEdit.cylinderText
    3236        property alias cylinderModel: detailsEdit.cylinderModel
    3337        property alias gasmix: detailsEdit.gasmixText
  • mobile-widgets/qml/DiveDetailsEdit.qml

    r8a71196 r052be69  
    1616        property alias watertempText: txtWaterTemp.text
    1717        property alias suitIndex: suitBox.currentIndex
     18        property alias suitText: suitBox.text
    1819        property alias buddyIndex: buddyBox.currentIndex
     20        property alias buddyText: buddyBox.text
    1921        property alias divemasterIndex: divemasterBox.currentIndex
     22        property alias divemasterText: divemasterBox.text
    2023        property alias cylinderIndex: cylinderBox.currentIndex
     24        property alias cylinderText: cylinderBox.text
    2125        property alias notesText: txtNotes.text
    2226        property alias durationText: txtDuration.text
  • mobile-widgets/qml/main.qml

    ree75812 r052be69  
    8484                detailsWindow.buddyModel = manager.buddyInit
    8585                detailsWindow.buddyIndex = -1
     86                detailsWindow.buddyText = ""
    8687                detailsWindow.depth = ""
    8788                detailsWindow.divemasterModel = manager.divemasterInit
    8889                detailsWindow.divemasterIndex = -1
     90                detailsWindow.divemasterText = ""
    8991                detailsWindow.notes = ""
    9092                detailsWindow.location = ""
     
    9395                detailsWindow.suitModel = manager.suitInit
    9496                detailsWindow.suitIndex = -1
     97                detailsWindow.suitText = ""
     98                detailsWindow.cylinderModel = manager.cylinderInit
     99                detailsWindow.cylinderIndex = -1
     100                detailsWindow.cylinderText = ""
    95101                detailsWindow.weight = ""
    96102                detailsWindow.gasmix = ""
Note: See TracChangeset for help on using the changeset viewer.