diff options
author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2018-07-13 13:30:07 +0200 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2018-07-18 22:12:18 +0000 |
commit | 379ba8640a9cf7e43e848eb07c11989f0f4f3ddd (patch) | |
tree | 5131b7c128d36549677f239ea954edd8a1665365 /tests/auto/quick/qquicktableview/data | |
parent | aec42f9953954d48a11465f56b5e5ee4987f3b44 (diff) |
QQuickTableView: remove TableView.cellWidth/Height
The attached properties TableView.cellWidth/Height were added
for corner cases where you couldn't set/override implicit size
for a delegate item. But now that we have added rowHeightProvider
and columnWidthProvider (and we know that we're going to offer a
broader API to set row/column size from a HeaderView), you have
a way out for those cases as well. So lets remove the attached
properties until we know for sure if they will be needed.
Change-Id: I7d20fb02c36aebd3f24964630ccb68d4c813e93e
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/quick/qquicktableview/data')
-rw-r--r-- | tests/auto/quick/qquicktableview/data/countingtableview.qml | 4 | ||||
-rw-r--r-- | tests/auto/quick/qquicktableview/data/plaintableview.qml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/quick/qquicktableview/data/countingtableview.qml b/tests/auto/quick/qquicktableview/data/countingtableview.qml index d8315be54f..1e8e9f43fb 100644 --- a/tests/auto/quick/qquicktableview/data/countingtableview.qml +++ b/tests/auto/quick/qquicktableview/data/countingtableview.qml @@ -64,8 +64,8 @@ Item { id: tableViewDelegate Rectangle { objectName: "tableViewDelegate" - TableView.cellWidth: 100 - TableView.cellHeight: 50 + implicitWidth: 100 + implicitHeight: 50 color: "lightgray" border.width: 1 Text { diff --git a/tests/auto/quick/qquicktableview/data/plaintableview.qml b/tests/auto/quick/qquicktableview/data/plaintableview.qml index 7668f0ca01..a073941faa 100644 --- a/tests/auto/quick/qquicktableview/data/plaintableview.qml +++ b/tests/auto/quick/qquicktableview/data/plaintableview.qml @@ -66,8 +66,8 @@ Item { id: tableViewDelegate Rectangle { objectName: "tableViewDelegate" - TableView.cellWidth: delegateWidth - TableView.cellHeight: delegateHeight + implicitWidth: delegateWidth + implicitHeight: delegateHeight color: "lightgray" border.width: 1 Text { |