aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/tableview
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2018-07-13 13:30:07 +0200
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2018-07-18 22:12:18 +0000
commit379ba8640a9cf7e43e848eb07c11989f0f4f3ddd (patch)
tree5131b7c128d36549677f239ea954edd8a1665365 /tests/manual/tableview
parentaec42f9953954d48a11465f56b5e5ee4987f3b44 (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')
-rw-r--r--tests/manual/tableview/abstracttablemodel/main.qml4
-rw-r--r--tests/manual/tableview/listmodel/main.qml4
-rw-r--r--tests/manual/tableview/storagemodel/main.qml4
3 files changed, 6 insertions, 6 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
diff --git a/tests/manual/tableview/listmodel/main.qml b/tests/manual/tableview/listmodel/main.qml
index ca39e6a2b9..53cc1ed141 100644
--- a/tests/manual/tableview/listmodel/main.qml
+++ b/tests/manual/tableview/listmodel/main.qml
@@ -72,8 +72,8 @@ Window {
delegate: Component {
Rectangle {
id: tableDelegate
- TableView.cellWidth: 100
- TableView.cellHeight: 50
+ implicitWidth: 100
+ implicitHeight: 50
Text {
anchors.centerIn: parent
diff --git a/tests/manual/tableview/storagemodel/main.qml b/tests/manual/tableview/storagemodel/main.qml
index f76da374e3..ba73c7e5bf 100644
--- a/tests/manual/tableview/storagemodel/main.qml
+++ b/tests/manual/tableview/storagemodel/main.qml
@@ -60,8 +60,8 @@ Window {
rowSpacing: 1
delegate: Rectangle {
id: tableDelegate
- TableView.cellWidth: displayText.implicitWidth + 8
- TableView.cellHeight: displayText.implicitHeight + 14
+ implicitWidth: displayText.implicitWidth + 8
+ implicitHeight: displayText.implicitHeight + 14
Text {
id: displayText