aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/quick/qquicktableview/data/replaceModelTableView.qml10
-rw-r--r--tests/auto/quick/qquicktableview/tst_qquicktableview.cpp4
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/auto/quick/qquicktableview/data/replaceModelTableView.qml b/tests/auto/quick/qquicktableview/data/replaceModelTableView.qml
index 2b17e055a7..1b6074f5d5 100644
--- a/tests/auto/quick/qquicktableview/data/replaceModelTableView.qml
+++ b/tests/auto/quick/qquicktableview/data/replaceModelTableView.qml
@@ -11,9 +11,9 @@ Item {
ObjectModel {
id: om
- Rectangle { height: 30; width: 80; color: "red" }
- Rectangle { height: 30; width: 80; color: "green" }
- Rectangle { height: 30; width: 80; color: "blue" }
+ Rectangle { implicitHeight: 30; implicitWidth: 80; color: "red" }
+ Rectangle { implicitHeight: 30; implicitWidth: 80; color: "green" }
+ Rectangle { implicitHeight: 30; implicitWidth: 80; color: "blue" }
}
ListModel {
@@ -29,8 +29,8 @@ Item {
ListElement { name: "Orange" }
}
delegate: Rectangle {
- height: 25
- width: 100
+ implicitHeight: 25
+ implicitWidth: 100
Text { text: "Name: " + name}
}
}
diff --git a/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp b/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp
index d6468f4652..09d1b8ca7c 100644
--- a/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp
+++ b/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp
@@ -2708,9 +2708,9 @@ void tst_QQuickTableView::replaceModel()
tableView->setProperty("modelId", 0);
QTRY_COMPARE(tableView->rows(), 2);
tableView->setProperty("modelId", 1);
- QTRY_COMPARE(tableView->rows(), 0);
+ QTRY_COMPARE(tableView->rows(), 3);
tableView->setProperty("modelId", 2);
- QTRY_COMPARE(tableView->rows(), 0);
+ QTRY_COMPARE(tableView->rows(), 2);
tableView->setProperty("modelId", 0);
QTRY_COMPARE(tableView->rows(), 2);
}