mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: always show dives that aren't in a trip
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cc319ad8b1
commit
8508fa5be8
1 changed files with 4 additions and 4 deletions
|
@ -49,8 +49,8 @@ Kirigami.ScrollablePage {
|
||||||
supportsMouseEvents: true
|
supportsMouseEvents: true
|
||||||
checked: diveListView.currentIndex === model.index
|
checked: diveListView.currentIndex === model.index
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 0
|
height: dive.tripNrDives == 0 ? diveListEntry.height + Kirigami.Units.smallSpacing : 0
|
||||||
visible: false
|
visible: dive.tripNrDives == 0
|
||||||
backgroundColor: checked ? subsurfaceTheme.primaryColor : subsurfaceTheme.backgroundColor
|
backgroundColor: checked ? subsurfaceTheme.primaryColor : subsurfaceTheme.backgroundColor
|
||||||
activeBackgroundColor: subsurfaceTheme.primaryColor
|
activeBackgroundColor: subsurfaceTheme.primaryColor
|
||||||
textColor: checked ? subsurfaceTheme.primaryTextColor : subsurfaceTheme.textColor
|
textColor: checked ? subsurfaceTheme.primaryTextColor : subsurfaceTheme.textColor
|
||||||
|
@ -60,7 +60,7 @@ Kirigami.ScrollablePage {
|
||||||
states: [
|
states: [
|
||||||
State {
|
State {
|
||||||
name: "isHidden";
|
name: "isHidden";
|
||||||
when: dive.tripMeta !== activeTrip
|
when: dive.tripMeta !== activeTrip && dive.tripNrDives != 0
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: innerListItem
|
target: innerListItem
|
||||||
height: 0
|
height: 0
|
||||||
|
@ -69,7 +69,7 @@ Kirigami.ScrollablePage {
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
name: "isVisible";
|
name: "isVisible";
|
||||||
when: dive.tripMeta === activeTrip
|
when: dive.tripMeta === activeTrip || dive.tripNrDives == 0
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: innerListItem
|
target: innerListItem
|
||||||
height: diveListEntry.height + Kirigami.Units.smallSpacing
|
height: diveListEntry.height + Kirigami.Units.smallSpacing
|
||||||
|
|
Loading…
Add table
Reference in a new issue