diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-06-07 10:10:48 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-06-07 10:11:19 +0300 |
commit | 78bc09779e2fa380f2f5854147bf5beba87e3fc4 (patch) | |
tree | 1a745ededebd9ffb8e271995d08e04bd0b45bba6 /examples/qmlbarchart/qml | |
parent | 8e5d1af94ca3caf479b87b196ae03b14f454750c (diff) |
QML2 Texture flipped correctly
Change-Id: I0a4ea4e8bf383a1c4ff40371d2ec0a407194ef44
Change-Id: I0a4ea4e8bf383a1c4ff40371d2ec0a407194ef44
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'examples/qmlbarchart/qml')
-rw-r--r-- | examples/qmlbarchart/qml/qmlbarchart/main.qml | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/examples/qmlbarchart/qml/qmlbarchart/main.qml b/examples/qmlbarchart/qml/qmlbarchart/main.qml index f36aece6..3289c792 100644 --- a/examples/qmlbarchart/qml/qmlbarchart/main.qml +++ b/examples/qmlbarchart/qml/qmlbarchart/main.qml @@ -32,6 +32,15 @@ Item { id: mainview anchors.fill: parent antialiasing: true + // This allows us to flip the texture to be displayed correctly in scene graph + // TODO: Find a way to do it in code.. + transform: [ + Rotation { + id: rotation; + axis.x: 1; axis.z: 0; axis.y: 0; angle: 0; + origin.x: width / 2; origin.y: height / 2; + } + ] DataItem { id: testitem @@ -90,9 +99,13 @@ Item { } } -// Component.onCompleted: { + Component.onCompleted: { + // This allows us to flip the texture to be displayed correctly in scene graph + // TODO: Find a way to do it in code.. + rotation.angle = 180 + console.log("kukkuu") // testrow.addData(); // testchart.setUpBars(); -// } + } } } |