aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickflickable/data
diff options
context:
space:
mode:
authorRiku Palomäki <riku@palomaki.fi>2015-10-21 22:13:19 +0300
committerShawn Rutledge <shawn.rutledge@qt.io>2016-08-18 13:36:44 +0000
commit96bd2337a98c892b5def555163c491507dce7185 (patch)
tree83fe9de9c7a6f873c84fde54ba96ab0443bba62b /tests/auto/quick/qquickflickable/data
parentb5f9c1e6e7f3a6881874e4ec2f43cea68107a06b (diff)
Flickable: Fixed rounding errors with contentX/Y
contentX/Y are qreals, but they are rounded using qRound/qFloor/qCeil which will limit the values to 2^31 needlessly. This fix will use (std::)round, std::floor and std::ceil instead to allow bigger values for contentX and contentY. Change-Id: I35ad4bcfa3b8bbc21e90768d348d3002ca400081 Task-number: QTBUG-48018 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickflickable/data')
-rw-r--r--tests/auto/quick/qquickflickable/data/contentXY.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickflickable/data/contentXY.qml b/tests/auto/quick/qquickflickable/data/contentXY.qml
new file mode 100644
index 0000000000..8215976949
--- /dev/null
+++ b/tests/auto/quick/qquickflickable/data/contentXY.qml
@@ -0,0 +1,6 @@
+import QtQuick 2.0
+
+Flickable {
+ width: 400; height: 400
+ contentWidth: 1e11; contentHeight: 1e11
+}