aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quickcontrols/qquickheaderview/data/DefaultRoles.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quickcontrols/qquickheaderview/data/DefaultRoles.qml')
-rw-r--r--tests/auto/quickcontrols/qquickheaderview/data/DefaultRoles.qml34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/auto/quickcontrols/qquickheaderview/data/DefaultRoles.qml b/tests/auto/quickcontrols/qquickheaderview/data/DefaultRoles.qml
new file mode 100644
index 0000000000..29e7e80d9e
--- /dev/null
+++ b/tests/auto/quickcontrols/qquickheaderview/data/DefaultRoles.qml
@@ -0,0 +1,34 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+import QtQuick
+import QtQuick.Controls
+import TestTableModel
+
+ApplicationWindow {
+ width: 400
+ height: 400
+
+ property alias headerView: headerView
+
+ Column {
+ HorizontalHeaderView {
+ id: headerView
+
+ width: 200
+ height: 200
+
+ model: TestTableModel {
+ id: tm
+ objectName: "tableModel"
+ rowCount: 1
+ columnCount: 1
+ }
+ textRole: "toolTip"
+ delegate: Rectangle {
+ required property string toolTip
+ implicitWidth: 40
+ implicitHeight: 40
+ }
+ }
+ }
+}