summaryrefslogtreecommitdiffstats
path: root/examples/declarative/mouseregion
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-07-31 01:34:36 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-07-31 01:34:36 (GMT)
commit56f67f2fdf84fe5e7660552c52b67c4e474054dd (patch)
tree7e1b59cd738432c8a48616621934381ddf2e298c /examples/declarative/mouseregion
parent8d9690cca4a13d4951b3d303eb57dbe4e25ce21c (diff)
downloadQt-56f67f2fdf84fe5e7660552c52b67c4e474054dd.zip
Qt-56f67f2fdf84fe5e7660552c52b67c4e474054dd.tar.gz
Qt-56f67f2fdf84fe5e7660552c52b67c4e474054dd.tar.bz2
Rename centeredIn to centerIn.
Diffstat (limited to 'examples/declarative/mouseregion')
-rw-r--r--examples/declarative/mouseregion/mouse.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/mouseregion/mouse.qml b/examples/declarative/mouseregion/mouse.qml
index 0948a32..d9db106 100644
--- a/examples/declarative/mouseregion/mouse.qml
+++ b/examples/declarative/mouseregion/mouse.qml
@@ -6,7 +6,7 @@ Rect {
Rect {
width: 50; height: 50
color: "red"
- Text { text: "Click"; anchors.centeredIn: parent }
+ Text { text: "Click"; anchors.centerIn: parent }
MouseRegion {
onPressed: { print('press (x: ' + mouse.x + ' y: ' + mouse.y + ' button: ' + (mouse.button == Qt.RightButton ? 'right' : 'left') + ' Shift: ' + (mouse.modifiers & Qt.ShiftModifier ? 'true' : 'false') + ')') }
onReleased: { print('release (x: ' + mouse.x + ' y: ' + mouse.y + ' isClick: ' + mouse.isClick + ' wasHeld: ' + mouse.wasHeld + ')') }
@@ -21,7 +21,7 @@ Rect {
Rect {
y: 100; width: 50; height: 50
color: "blue"
- Text { text: "Drag"; anchors.centeredIn: parent }
+ Text { text: "Drag"; anchors.centerIn: parent }
MouseRegion {
drag.target: parent
drag.axis: "x"