mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: display rating and visibility stars
Display rating and visibility stars on the dive details page. See #495 Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
parent
ee17d54753
commit
9d7eb33a33
3 changed files with 93 additions and 1 deletions
|
@ -38,6 +38,8 @@ Kirigami.Page {
|
|||
property alias gasmix: detailsEdit.gasmixText
|
||||
property alias gpsCheckbox: detailsEdit.gpsCheckbox
|
||||
property int updateCurrentIdx: manager.updateSelectedDive
|
||||
property alias rating: detailsEdit.rating
|
||||
property alias visibility: detailsEdit.visibility
|
||||
|
||||
title: currentItem && currentItem.modelData ? currentItem.modelData.dive.location : qsTr("Dive details")
|
||||
state: "view"
|
||||
|
@ -174,6 +176,8 @@ Kirigami.Page {
|
|||
endpressure = currentItem.modelData.dive.endPressure
|
||||
gasmix = currentItem.modelData.dive.firstGas
|
||||
cylinderIndex = currentItem.modelData.dive.cylinderList.indexOf(currentItem.modelData.dive.getCylinder)
|
||||
rating = currentItem.modelData.dive.rating
|
||||
visibility = currentItem.modelData.dive.visibility
|
||||
|
||||
diveDetailsPage.state = "edit"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue