diff options
author | Yoann Lopes <yoann.lopes@nokia.com> | 2010-12-06 14:05:19 +0100 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@nokia.com> | 2010-12-06 14:11:47 +0100 |
commit | 930274905328e52e0e9db07d520958b61587c612 (patch) | |
tree | dab7d0c2c20627c3c2c884fb922c62132aa158a0 | |
parent | 9548d05769e817915fe476094b3e3cda178563ab (diff) |
Fixes QtQuick 1.0 -> 2.0.
-rw-r--r-- | tests/animated-circle.qml | 6 | ||||
-rw-r--r-- | tests/big-flickable.qml | 18 | ||||
-rw-r--r-- | tests/mousearea.qml | 2 | ||||
-rw-r--r-- | tests/rotatingcircle.qml | 2 |
4 files changed, 14 insertions, 14 deletions
diff --git a/tests/animated-circle.qml b/tests/animated-circle.qml index af2571c..921a4bb 100644 --- a/tests/animated-circle.qml +++ b/tests/animated-circle.qml @@ -1,6 +1,6 @@ -import QtQuick 1.0 +import QtQuick 2.0 -Item +Item { width: 800 height: 600 @@ -16,6 +16,6 @@ Item x: parent.width / 2 + parent.width / 3 * Math.sin(t * Math.PI * 2) - width / 2.; y: parent.height / 2 + parent.height / 3 * Math.cos(t * Math.PI * 2) - height / 2.; - NumberAnimation on t { from: 0; to: 1; duration: 5000; loops: Animation.Infinite } + NumberAnimation on t { from: 0; to: 1; duration: 5000; loops: Animation.Infinite } } } diff --git a/tests/big-flickable.qml b/tests/big-flickable.qml index 378300b..e3591b0 100644 --- a/tests/big-flickable.qml +++ b/tests/big-flickable.qml @@ -1,20 +1,20 @@ -import Qt 4.7 +import QtQuick 2.0 Item { width: 360 height: 640 Flickable { - id: flick + id: flick anchors.fill: parent - contentWidth: 4000 - contentHeight: 3000 + contentWidth: 4000 + contentHeight: 3000 - Image { - source: "img.png" - width: flick.contentWidth - height: flick.contentHeight + Image { + source: "img.png" + width: flick.contentWidth + height: flick.contentHeight } } -}
\ No newline at end of file +} diff --git a/tests/mousearea.qml b/tests/mousearea.qml index 6924dd6..48e9044 100644 --- a/tests/mousearea.qml +++ b/tests/mousearea.qml @@ -1,4 +1,4 @@ -import QtQuick 1.0 +import QtQuick 2.0 Item diff --git a/tests/rotatingcircle.qml b/tests/rotatingcircle.qml index bf71196..d1d9342 100644 --- a/tests/rotatingcircle.qml +++ b/tests/rotatingcircle.qml @@ -1,4 +1,4 @@ -import QtQuick 1.0 +import QtQuick 2.0 Item { width: 800 |