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/manual/tableview/abstracttablemodel | |
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/manual/tableview/abstracttablemodel')
-rw-r--r-- | tests/manual/tableview/abstracttablemodel/main.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/manual/tableview/abstracttablemodel/main.qml b/tests/manual/tableview/abstracttablemodel/main.qml index 271752aaf1..52541657df 100644 --- a/tests/manual/tableview/abstracttablemodel/main.qml +++ b/tests/manual/tableview/abstracttablemodel/main.qml @@ -76,8 +76,8 @@ Window { Component { id: tableViewDelegate Rectangle { - TableView.cellWidth: column % 3 ? 80 : 50 - TableView.cellHeight: row % 3 ? 80 : 50 + implicitWidth: column % 3 ? 80 : 50 + implicitHeight: row % 3 ? 80 : 50 Text { anchors.centerIn: parent |