mobile: flip through dive computers on mobile

UI fixed by Dirk.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Berthold Stoeger 2022-09-17 17:19:11 +02:00
parent d66376a8f3
commit 7c8dc016b5
5 changed files with 82 additions and 7 deletions

View file

@ -210,7 +210,6 @@ Item {
color: subsurfaceTheme.textColor
}
}
}
GridLayout {
id: bottomLayout
@ -362,7 +361,44 @@ Item {
horizontalAlignment: Text.AlignHCenter
text: qsTr("No profile to show")
}
// under the profile
// -----------------
Row {
TemplateButton {
id: prevDC
visible: qmlProfile.numDC > 1
text: qsTr("prev.DC")
font.pointSize: subsurfaceTheme.smallPointSize
onClicked: {
qmlProfile.prevDC()
}
}
TemplateLabel {
text: " "
width: Kirigami.Units.largeSpacing
visible: qmlProfile.numDC > 1
}
TemplateButton {
id: nextDC
visible: qmlProfile.numDC > 1
text: qsTr("next DC")
font.pointSize: subsurfaceTheme.smallPointSize
onClicked: {
qmlProfile.nextDC()
}
}
}
// two empty entries
TemplateLabel {
text: " "
width: Kirigami.Units.largeSpacing
visible: qmlProfile.numDC > 1
}
TemplateLabel {
text: " "
width: Kirigami.Units.largeSpacing
visible: qmlProfile.numDC > 1
}
// first row
//-----------
TemplateLabelSmall {