aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/material/HorizontalHeaderView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/material/HorizontalHeaderView.qml')
-rw-r--r--src/imports/controls/material/HorizontalHeaderView.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/imports/controls/material/HorizontalHeaderView.qml b/src/imports/controls/material/HorizontalHeaderView.qml
index 504579cc..fd672f34 100644
--- a/src/imports/controls/material/HorizontalHeaderView.qml
+++ b/src/imports/controls/material/HorizontalHeaderView.qml
@@ -56,7 +56,9 @@ T.HorizontalHeaderView {
Text {
id: text
- text: model[control.textRole]
+ text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole]
+ : model[control.textRole])
+ : modelData
width: parent.width
height: parent.height
horizontalAlignment: Text.AlignHCenter