diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/flowview/flickr.qml | 2 | ||||
-rw-r--r-- | examples/declarative/flowview/flowview.qml | 2 | ||||
-rw-r--r-- | examples/declarative/listview/content/MediaButton.qml | 2 | ||||
-rw-r--r-- | examples/declarative/loader/Browser.qml | 4 | ||||
-rw-r--r-- | examples/declarative/loader/Button.qml | 2 | ||||
-rw-r--r-- | examples/declarative/mouseregion/mouse.qml | 4 | ||||
-rw-r--r-- | examples/declarative/slideswitch/display.qml | 2 | ||||
-rw-r--r-- | examples/declarative/snow/ImageBatch.qml | 2 | ||||
-rw-r--r-- | examples/declarative/snow/snow.qml | 2 |
9 files changed, 11 insertions, 11 deletions
diff --git a/examples/declarative/flowview/flickr.qml b/examples/declarative/flowview/flickr.qml index 6c47b82..1cf0f73 100644 --- a/examples/declarative/flowview/flickr.qml +++ b/examples/declarative/flowview/flickr.qml @@ -35,7 +35,7 @@ Rect { delegate: Item { width: 90; height: 86 Rect { - anchors.centeredIn: parent + anchors.centerIn: parent width: 86; height: 86; color: "white"; radius: 5 Image { source: imagePath; x: 5; y: 5 } diff --git a/examples/declarative/flowview/flowview.qml b/examples/declarative/flowview/flowview.qml index ff15d96..99f5c1e 100644 --- a/examples/declarative/flowview/flowview.qml +++ b/examples/declarative/flowview/flowview.qml @@ -8,7 +8,7 @@ Rect { Rect { id: MyPhone transformOrigin: "Center" - anchors.centeredIn: parent + anchors.centerIn: parent width: 800 height: 480 clip: true diff --git a/examples/declarative/listview/content/MediaButton.qml b/examples/declarative/listview/content/MediaButton.qml index 23ae466..8fff22b 100644 --- a/examples/declarative/listview/content/MediaButton.qml +++ b/examples/declarative/listview/content/MediaButton.qml @@ -22,7 +22,7 @@ Item { Text { font.bold: true color: "white" - anchors.centeredIn: Image + anchors.centerIn: Image text: Container.text } width: Image.width diff --git a/examples/declarative/loader/Browser.qml b/examples/declarative/loader/Browser.qml index 007b998..64df830 100644 --- a/examples/declarative/loader/Browser.qml +++ b/examples/declarative/loader/Browser.qml @@ -30,7 +30,7 @@ Rect { } Item { width: 32; height: 32 - Image { source: "images/fileopen.png"; anchors.centeredIn: parent; visible: folders.isFolder(index)} + Image { source: "images/fileopen.png"; anchors.centerIn: parent; visible: folders.isFolder(index)} } Text { id: NameText @@ -90,7 +90,7 @@ Rect { height: TitleBar.height pen.color: activePalette.mid; color: "transparent" MouseRegion { anchors.fill: parent; onClicked: folders.folder = up(folders.folder) } - Image { anchors.centeredIn: parent; source: "images/up.png" } + Image { anchors.centerIn: parent; source: "images/up.png" } } Text { diff --git a/examples/declarative/loader/Button.qml b/examples/declarative/loader/Button.qml index 7a17601..562e04c 100644 --- a/examples/declarative/loader/Button.qml +++ b/examples/declarative/loader/Button.qml @@ -12,5 +12,5 @@ Rect { radius: 4 color: "grey" MouseRegion { anchors.fill: parent; onClicked: Container.clicked() } - Text { id: Text; anchors.centeredIn:parent; font.size: 10; text: parent.text } + Text { id: Text; anchors.centerIn:parent; font.size: 10; text: parent.text } } 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" diff --git a/examples/declarative/slideswitch/display.qml b/examples/declarative/slideswitch/display.qml index db67dab..bd9b122 100644 --- a/examples/declarative/slideswitch/display.qml +++ b/examples/declarative/slideswitch/display.qml @@ -5,6 +5,6 @@ Rect { width: 150 height: 150 Switch { - anchors.centeredIn: parent + anchors.centerIn: parent } } diff --git a/examples/declarative/snow/ImageBatch.qml b/examples/declarative/snow/ImageBatch.qml index 77bacab..4b52991 100644 --- a/examples/declarative/snow/ImageBatch.qml +++ b/examples/declarative/snow/ImageBatch.qml @@ -43,7 +43,7 @@ GridView { Image { id: Image; source: url; preserveAspect: true; smooth: true; anchors.fill: parent; opacity: (status == 0)?1:0; opacity: Behavior { NumberAnimation { properties: "opacity" } } } - Loading { anchors.centeredIn: parent; visible: Image.status } + Loading { anchors.centerIn: parent; visible: Image.status } states: State { name: "selected" diff --git a/examples/declarative/snow/snow.qml b/examples/declarative/snow/snow.qml index aa5185f..aed426f 100644 --- a/examples/declarative/snow/snow.qml +++ b/examples/declarative/snow/snow.qml @@ -21,7 +21,7 @@ Rect { property int selectedY: selectedItemRow * imageHeight Item { - anchors.centeredIn: parent + anchors.centerIn: parent HorizontalLayout { id: MyLayout property real targetX: -(selectedX + imageWidth / 2) |