Commit 01be1d0f authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇 Committed by Volker Krause
Browse files

Support text alignment also for backFields

Got an event ticket which had that set to "centered",
displays correctly now.

(cherry picked from commit b4084880)
parent 2b4ef246
......@@ -206,12 +206,14 @@ Item {
color: pass.labelColor
text: modelData.label
wrapMode: Text.WordWrap
horizontalAlignment: modelData.textAlignment
}
QQC2.Label {
Layout.fillWidth: true
color: pass.foregroundColor
text: Util.textToHtml(modelData.valueDisplayString)
wrapMode: Text.WordWrap
horizontalAlignment: modelData.textAlignment
onLinkActivated: Qt.openUrlExternally(link)
}
}
......
......@@ -206,12 +206,14 @@ Item {
color: pass.labelColor
text: modelData.label
wrapMode: Text.WordWrap
horizontalAlignment: modelData.textAlignment
}
QQC2.Label {
Layout.fillWidth: true
color: pass.foregroundColor
text: Util.textToHtml(modelData.valueDisplayString)
wrapMode: Text.WordWrap
horizontalAlignment: modelData.textAlignment
onLinkActivated: Qt.openUrlExternally(link)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment