aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols/basic/VerticalHeaderView.qml
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <[email protected]>2023-01-11 13:35:22 +0100
committerRichard Moe Gustavsen <[email protected]>2023-01-13 09:37:35 +0100
commit55da2e6c994c8f6f0e49e501e4a5ff275f4a9d15 (patch)
tree8ff4d5ef3b7d3a4355d318e7c6a68bee454e7f41 /src/quickcontrols/basic/VerticalHeaderView.qml
parentb139070654501f8cbcd3a432abfcfdad72b36ca4 (diff)
HeaderView: Use Label instead of Text in the delegates
The Text item will not follow the application font. So rather than using Text inside the delegates, use Label. HeaderView doesn't currently have a font property that can be set by the application, but using Label will at least ensure that it ends up using the same font set on a parent control (e.g ApplicationWindow, at the very least). Pick-to: 6.5 6.4 Change-Id: I9b10a7b9ac74e6f67f0644f3a2376f13e3da2c8d Reviewed-by: Mitch Curtis <[email protected]>
Diffstat (limited to 'src/quickcontrols/basic/VerticalHeaderView.qml')
-rw-r--r--src/quickcontrols/basic/VerticalHeaderView.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quickcontrols/basic/VerticalHeaderView.qml b/src/quickcontrols/basic/VerticalHeaderView.qml
index 5ff9043f93..23bb2d62e3 100644
--- a/src/quickcontrols/basic/VerticalHeaderView.qml
+++ b/src/quickcontrols/basic/VerticalHeaderView.qml
@@ -24,7 +24,7 @@ T.VerticalHeaderView {
color: "#f6f6f6"
border.color: "#e4e4e4"
- Text {
+ Label {
id: text
text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole]
: model[control.textRole])