mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
feab249bf2
commit
5f6b7450a9
1 changed files with 4 additions and 4 deletions
|
@ -123,7 +123,7 @@ Kirigami.ScrollablePage {
|
||||||
height: headerLabel.height + Kirigami.Units.largeSpacing
|
height: headerLabel.height + Kirigami.Units.largeSpacing
|
||||||
TemplateLabel {
|
TemplateLabel {
|
||||||
id: headerLabel
|
id: headerLabel
|
||||||
verticalAlignment: Qt.AlignVCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
colorBackground: parent.color
|
colorBackground: parent.color
|
||||||
leftPadding: Kirigami.Units.largeSpacing
|
leftPadding: Kirigami.Units.largeSpacing
|
||||||
text: header !== undefined ? header : ""
|
text: header !== undefined ? header : ""
|
||||||
|
@ -135,7 +135,7 @@ Kirigami.ScrollablePage {
|
||||||
width: headerColumnWidth * 1.5 - Kirigami.Units.gridUnit
|
width: headerColumnWidth * 1.5 - Kirigami.Units.gridUnit
|
||||||
height: headerLabel.height + Kirigami.Units.largeSpacing
|
height: headerLabel.height + Kirigami.Units.largeSpacing
|
||||||
TemplateLabel {
|
TemplateLabel {
|
||||||
verticalAlignment: Qt.AlignVCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
colorBackground: parent.color
|
colorBackground: parent.color
|
||||||
text: col0 !== undefined ? col0 : ""
|
text: col0 !== undefined ? col0 : ""
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,7 @@ Kirigami.ScrollablePage {
|
||||||
width: headerColumnWidth * 1.5 - Kirigami.Units.gridUnit
|
width: headerColumnWidth * 1.5 - Kirigami.Units.gridUnit
|
||||||
height: headerLabel.height + Kirigami.Units.largeSpacing
|
height: headerLabel.height + Kirigami.Units.largeSpacing
|
||||||
TemplateLabel {
|
TemplateLabel {
|
||||||
verticalAlignment: Qt.AlignVCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
colorBackground: parent.color
|
colorBackground: parent.color
|
||||||
text: col1 !== undefined ? col1 : ""
|
text: col1 !== undefined ? col1 : ""
|
||||||
}
|
}
|
||||||
|
@ -160,7 +160,7 @@ Kirigami.ScrollablePage {
|
||||||
height: headerLabel.height + Kirigami.Units.largeSpacing
|
height: headerLabel.height + Kirigami.Units.largeSpacing
|
||||||
TemplateLabel {
|
TemplateLabel {
|
||||||
id: headerLabel
|
id: headerLabel
|
||||||
verticalAlignment: Qt.AlignVCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
colorBackground: parent.color
|
colorBackground: parent.color
|
||||||
text: section
|
text: section
|
||||||
font.bold: true
|
font.bold: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue