summaryrefslogtreecommitdiff
path: root/tests/auto/controls/data/tableview/table_buttondelegate.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/controls/data/tableview/table_buttondelegate.qml')
-rw-r--r--tests/auto/controls/data/tableview/table_buttondelegate.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/controls/data/tableview/table_buttondelegate.qml b/tests/auto/controls/data/tableview/table_buttondelegate.qml
index 3f1be964..3c347b36 100644
--- a/tests/auto/controls/data/tableview/table_buttondelegate.qml
+++ b/tests/auto/controls/data/tableview/table_buttondelegate.qml
@@ -55,15 +55,16 @@ TableView {
onClicked: ++clickCount
TableViewColumn {
+ id: column
width: 100
}
rowDelegate: Item {
height: 40
- width: parent.width
+ width: column.width
}
itemDelegate: Button {
height: 40
- width: parent.width
+ width: column.width
text: styleData.value
activeFocusOnPress: true
onClicked: ++table.buttonClickCount