From 55da2e6c994c8f6f0e49e501e4a5ff275f4a9d15 Mon Sep 17 00:00:00 2001 From: Richard Moe Gustavsen Date: Wed, 11 Jan 2023 13:35:22 +0100 Subject: 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 --- src/quickcontrols/basic/VerticalHeaderView.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/quickcontrols/basic/VerticalHeaderView.qml') 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]) -- cgit v1.2.3