aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktableview/data
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2018-05-14 10:26:48 +0200
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2018-05-15 07:45:31 +0000
commit42720cb625433cfe33cd6a84829360c34966c32e (patch)
treebafd89c7e69f3bf1c64e24d49a3a364bb827eac7 /tests/auto/quick/qquicktableview/data
parent9f20a3155c9c3378d0cd4a712808c94d02d4561c (diff)
TableView: remove using a floatingPointMargin
The floatingPointMargin was added at an early stage to avoid that we ended up in a locked situation where we loaded and unloaded the same edge continuously without being able to exit the loading loop. This was done wrongly because we didn't take spacing into account in QQuickTableViewPrivate::canLoadTableEdge (spacing was usually one pixel, coincidentally the same as the floatingPointMargin). This has now been fixed in a previous patch, so we can remove the faulty floatingPointMargin as well. Change-Id: I3caa7808298a1954a3c02f609bad98c3c2c2426a Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/quick/qquicktableview/data')
-rw-r--r--tests/auto/quick/qquicktableview/data/plaintableview.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/quick/qquicktableview/data/plaintableview.qml b/tests/auto/quick/qquicktableview/data/plaintableview.qml
index ced07451b0..905c1e528e 100644
--- a/tests/auto/quick/qquicktableview/data/plaintableview.qml
+++ b/tests/auto/quick/qquicktableview/data/plaintableview.qml
@@ -43,13 +43,14 @@ import Qt.labs.tableview 1.0
Item {
width: 640
- height: 480
+ height: 450
property alias tableView: tableView
TableView {
id: tableView
- anchors.fill: parent
+ width: 600
+ height: 400
anchors.margins: 1
clip: true
delegate: tableViewDelegate
@@ -65,6 +66,7 @@ Item {
implicitWidth: 100
implicitHeight: 50
color: "lightgray"
+ border.width: 1
Text {
anchors.centerIn: parent
text: modelData