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
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user