summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2011-03-09 07:51:29 (GMT)
committerJoona Petrell <joona.t.petrell@nokia.com>2011-03-09 07:51:29 (GMT)
commit65c1eb37a2c284df17bdcc621008ebbe74f0e2fd (patch)
treeddb65658262fe2e83382405805f123730cec8bce /examples
parent4a0ce0775350cf2b10f44502dc86110684fc9fb5 (diff)
parentc7e7856f710fe09b1fd715390e74578166c0f709 (diff)
downloadQt-65c1eb37a2c284df17bdcc621008ebbe74f0e2fd.zip
Qt-65c1eb37a2c284df17bdcc621008ebbe74f0e2fd.tar.gz
Qt-65c1eb37a2c284df17bdcc621008ebbe74f0e2fd.tar.bz2
Merge branch 'qtquick11' into 4.7
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/positioners/layoutdirection/layoutdirection.qml22
1 files changed, 21 insertions, 1 deletions
diff --git a/examples/declarative/positioners/layoutdirection/layoutdirection.qml b/examples/declarative/positioners/layoutdirection/layoutdirection.qml
index 3e23b15..080010e 100644
--- a/examples/declarative/positioners/layoutdirection/layoutdirection.qml
+++ b/examples/declarative/positioners/layoutdirection/layoutdirection.qml
@@ -41,10 +41,13 @@
import QtQuick 1.1
Rectangle {
+ property bool mirror
+ property int direction: Qt.application.layoutDirection
+ LayoutMirroring.enabled: mirror
+ LayoutMirroring.childrenInherit: true
width: column.width + 100
height: column.height + 100
- property int direction: Qt.application.layoutDirection
Column {
id: column
@@ -133,6 +136,23 @@ Rectangle {
anchors.fill: parent
}
}
+ Rectangle {
+ height: 50; width: parent.width
+ color: mouseArea2.pressed ? "black" : "gray"
+ Text {
+ text: mirror ? "Mirrored" : "Normal"
+ color: "white"
+ font.pixelSize: 16
+ anchors.centerIn: parent
+ }
+ MouseArea {
+ id: mouseArea2
+ onClicked: {
+ mirror = !mirror;
+ }
+ anchors.fill: parent
+ }
+ }
}
Component {