summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-07 14:34:30 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-08 10:29:36 -0800
commit5f6b7450a9f8a2cfebe03d939cbc66a982bee680 (patch)
treed6bb2b082083d6bd715ccf643dcb7b866452220b /mobile-widgets
parentfeab249bf27d8c36c48562076abad8e22e56f52f (diff)
downloadsubsurface-5f6b7450a9f8a2cfebe03d939cbc66a982bee680.tar.gz
mobile/summary: correctly align text to vertical center
I keep forgetting that the verticalAlignment is only within the current object, which means that in a single line label it has no meaning at all. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveSummary.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/mobile-widgets/qml/DiveSummary.qml b/mobile-widgets/qml/DiveSummary.qml
index 7eb8d254a..21a5f3305 100644
--- a/mobile-widgets/qml/DiveSummary.qml
+++ b/mobile-widgets/qml/DiveSummary.qml
@@ -123,7 +123,7 @@ Kirigami.ScrollablePage {
height: headerLabel.height + Kirigami.Units.largeSpacing
TemplateLabel {
id: headerLabel
- verticalAlignment: Qt.AlignVCenter
+ anchors.verticalCenter: parent.verticalCenter
colorBackground: parent.color
leftPadding: Kirigami.Units.largeSpacing
text: header !== undefined ? header : ""
@@ -135,7 +135,7 @@ Kirigami.ScrollablePage {
width: headerColumnWidth * 1.5 - Kirigami.Units.gridUnit
height: headerLabel.height + Kirigami.Units.largeSpacing
TemplateLabel {
- verticalAlignment: Qt.AlignVCenter
+ anchors.verticalCenter: parent.verticalCenter
colorBackground: parent.color
text: col0 !== undefined ? col0 : ""
}
@@ -145,7 +145,7 @@ Kirigami.ScrollablePage {
width: headerColumnWidth * 1.5 - Kirigami.Units.gridUnit
height: headerLabel.height + Kirigami.Units.largeSpacing
TemplateLabel {
- verticalAlignment: Qt.AlignVCenter
+ anchors.verticalCenter: parent.verticalCenter
colorBackground: parent.color
text: col1 !== undefined ? col1 : ""
}
@@ -160,7 +160,7 @@ Kirigami.ScrollablePage {
height: headerLabel.height + Kirigami.Units.largeSpacing
TemplateLabel {
id: headerLabel
- verticalAlignment: Qt.AlignVCenter
+ anchors.verticalCenter: parent.verticalCenter
colorBackground: parent.color
text: section
font.bold: true