summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-08-21 03:27:52 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-08-21 03:27:52 (GMT)
commit08a4fffc4c93c324f95f5759c620287330c68d9d (patch)
tree4bced6b7c308f405ef021c1e006de65cfaaeaa1e /examples
parent1d9ae86dda99d8f0eb4949d3779777e795eb52be (diff)
downloadQt-08a4fffc4c93c324f95f5759c620287330c68d9d.zip
Qt-08a4fffc4c93c324f95f5759c620287330c68d9d.tar.gz
Qt-08a4fffc4c93c324f95f5759c620287330c68d9d.tar.bz2
Rename State change elements.
SetProperties -> PropertyChanges RunScript -> StateChangeScript SetAnchors -> AnchorChanges
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/dynamic/DynRect.qml2
-rw-r--r--examples/declarative/flowview/flowview.qml14
-rw-r--r--examples/declarative/follow/follow.qml2
-rw-r--r--examples/declarative/layouts/Button.qml4
-rw-r--r--examples/declarative/listview/content/MediaButton.qml2
-rw-r--r--examples/declarative/listview/highlight.qml2
-rw-r--r--examples/declarative/listview/recipes.qml14
-rw-r--r--examples/declarative/loader/Browser.qml4
-rw-r--r--examples/declarative/minehunt/Explosion.qml6
-rw-r--r--examples/declarative/minehunt/minehunt.qml2
-rw-r--r--examples/declarative/scrollbar/display.qml4
-rw-r--r--examples/declarative/slideswitch/Switch.qml8
-rw-r--r--examples/declarative/snow/ImageBatch.qml4
-rw-r--r--examples/declarative/states/states.qml4
-rw-r--r--examples/declarative/states/transitions.qml4
-rw-r--r--examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4/RemoveButton.qml10
-rw-r--r--examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4a/RemoveButton.qml10
-rw-r--r--examples/declarative/tutorials/contacts/1_Drawing_and_Animation/5/RemoveButton.qml10
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/1/RemoveButton.qml10
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/1a/RemoveButton.qml10
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/1b/lib/RemoveButton.qml10
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml10
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/3/ContactField.qml4
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/3/FieldText.qml14
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/3/RemoveButton.qml10
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/4/ContactField.qml4
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/4/FieldText.qml14
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/4/RemoveButton.qml10
-rw-r--r--examples/declarative/tutorials/contacts/3_Collections/2/ContactView.qml10
-rw-r--r--examples/declarative/tutorials/contacts/3_Collections/3/ContactView.qml10
-rw-r--r--examples/declarative/tutorials/contacts/3_Collections/lib/Button.qml2
-rw-r--r--examples/declarative/tutorials/contacts/3_Collections/lib/ContactField.qml4
-rw-r--r--examples/declarative/tutorials/contacts/3_Collections/lib/FieldText.qml14
-rw-r--r--examples/declarative/tutorials/contacts/3_Collections/lib/RemoveButton.qml10
-rw-r--r--examples/declarative/tutorials/helloworld/t3/tutorial3.qml2
-rw-r--r--examples/declarative/velocity/Day.qml4
-rw-r--r--examples/declarative/xmldata/yahoonews.qml4
37 files changed, 131 insertions, 131 deletions
diff --git a/examples/declarative/dynamic/DynRect.qml b/examples/declarative/dynamic/DynRect.qml
index fd03863..06141ea 100644
--- a/examples/declarative/dynamic/DynRect.qml
+++ b/examples/declarative/dynamic/DynRect.qml
@@ -1,7 +1,7 @@
import Qt 4.6
Item {
- states: State{ name: "dying"; SetProperties{ target: newRect; opacity: 0 } }
+ states: State{ name: "dying"; PropertyChanges{ target: newRect; opacity: 0 } }
transitions: Transition{
NumberAnimation{ properties: "opacity"; target: newRect; duration:500 }
}
diff --git a/examples/declarative/flowview/flowview.qml b/examples/declarative/flowview/flowview.qml
index d40d378..9405e61 100644
--- a/examples/declarative/flowview/flowview.qml
+++ b/examples/declarative/flowview/flowview.qml
@@ -15,11 +15,11 @@ Rectangle {
states: State {
name: "rotated"
- SetProperties { target: ListView; z: 2 }
- SetProperties { target: TopBar; y: -30 }
- SetProperties { target: BottomBar; y: 480 }
- SetProperties { target: LeftBar; x: 0 }
- SetProperties { target: RightBar; x: 770 }
+ PropertyChanges { target: ListView; z: 2 }
+ PropertyChanges { target: TopBar; y: -30 }
+ PropertyChanges { target: BottomBar; y: 480 }
+ PropertyChanges { target: LeftBar; x: 0 }
+ PropertyChanges { target: RightBar; x: 770 }
}
transitions: Transition {
fromState: "" ; toState: "rotated"
@@ -53,13 +53,13 @@ Rectangle {
name: "InList"
when: MyPhone.state == "rotated"
ParentChange { target: MyContent; parent: List }
- SetProperties { target: MyContent; x: 120; y: 0; rotation: 90}
+ PropertyChanges { target: MyContent; x: 120; y: 0; rotation: 90}
},
State {
name: "InGrid"
when: MyPhone.state != "rotated"
ParentChange { target: MyContent; parent: Grid }
- SetProperties { target: MyContent; x: 0; y: 0; }
+ PropertyChanges { target: MyContent; x: 0; y: 0; }
}
]
transitions: [
diff --git a/examples/declarative/follow/follow.qml b/examples/declarative/follow/follow.qml
index 90bd7c8..37dc2e8 100644
--- a/examples/declarative/follow/follow.qml
+++ b/examples/declarative/follow/follow.qml
@@ -60,7 +60,7 @@ Rectangle {
State {
name: "following"
when: !F1.inSync || !F2.inSync
- SetProperties { target: Ball; color: "#ff0000" }
+ PropertyChanges { target: Ball; color: "#ff0000" }
}
]
transitions: [
diff --git a/examples/declarative/layouts/Button.qml b/examples/declarative/layouts/Button.qml
index 3f1aafc..6c2fd8d 100644
--- a/examples/declarative/layouts/Button.qml
+++ b/examples/declarative/layouts/Button.qml
@@ -9,8 +9,8 @@ Rectangle { border.color: "black"; color: "steelblue"; radius: 5; width: pix.wid
states:
State{ name:"pressed"; when:mr.pressed
- SetProperties {target:text; x: 5}
- SetProperties {target:pix; x:text.x+text.width + 3}
+ PropertyChanges {target:text; x: 5}
+ PropertyChanges {target:pix; x:text.x+text.width + 3}
}
transitions:
diff --git a/examples/declarative/listview/content/MediaButton.qml b/examples/declarative/listview/content/MediaButton.qml
index 8fff22b..599452d 100644
--- a/examples/declarative/listview/content/MediaButton.qml
+++ b/examples/declarative/listview/content/MediaButton.qml
@@ -30,7 +30,7 @@ Item {
State {
name: "Pressed"
when: MouseRegion.pressed == true
- SetProperties {
+ PropertyChanges {
target: Pressed
opacity: 1
}
diff --git a/examples/declarative/listview/highlight.qml b/examples/declarative/listview/highlight.qml
index b1cd6be..3506ad7 100644
--- a/examples/declarative/listview/highlight.qml
+++ b/examples/declarative/listview/highlight.qml
@@ -25,7 +25,7 @@ Rectangle {
State {
name: "Current"
when: Wrapper.ListView.isCurrentItem
- SetProperties { target: Wrapper; x: 10 }
+ PropertyChanges { target: Wrapper; x: 10 }
}
]
transitions: [
diff --git a/examples/declarative/listview/recipes.qml b/examples/declarative/listview/recipes.qml
index 34cdee5..b4ad4d5 100644
--- a/examples/declarative/listview/recipes.qml
+++ b/examples/declarative/listview/recipes.qml
@@ -16,7 +16,7 @@ Rectangle {
width: List.width
// Create a property to contain the visibility of the details.
// We can bind multiple element's opacity to this one property,
- // rather than having a "SetProperties" line for each element we
+ // rather than having a "PropertyChanges" line for each element we
// want to fade.
property real detailsOpacity : 0
@@ -96,17 +96,17 @@ Rectangle {
states: [
State {
name: "Details"
- SetProperties { target: background; color: "white" }
+ PropertyChanges { target: background; color: "white" }
// Make the picture bigger
- SetProperties { target: recipePic; width: 128; height: 128 }
+ PropertyChanges { target: recipePic; width: 128; height: 128 }
// Make details visible
- SetProperties { target: wrapper; detailsOpacity: 1; x: 0 }
+ PropertyChanges { target: wrapper; detailsOpacity: 1; x: 0 }
// Make the detailed view fill the entire list area
- SetProperties { target: wrapper; height: List.height }
+ PropertyChanges { target: wrapper; height: List.height }
// Move the list so that this item is at the top.
- SetProperties { target: wrapper.ListView.view; explicit: true; yPosition: wrapper.y }
+ PropertyChanges { target: wrapper.ListView.view; explicit: true; yPosition: wrapper.y }
// Disallow flicking while we're in detailed view
- SetProperties { target: wrapper.ListView.view; locked: 1 }
+ PropertyChanges { target: wrapper.ListView.view; locked: 1 }
}
]
transitions: [
diff --git a/examples/declarative/loader/Browser.qml b/examples/declarative/loader/Browser.qml
index e152779..196cdc5 100644
--- a/examples/declarative/loader/Browser.qml
+++ b/examples/declarative/loader/Browser.qml
@@ -55,8 +55,8 @@ Rectangle {
State {
name: "pressed"
when: Mouse.pressed
- SetProperties { target: Highlight; visible: true }
- SetProperties { target: NameText; color: Palette.highlightedText }
+ PropertyChanges { target: Highlight; visible: true }
+ PropertyChanges { target: NameText; color: Palette.highlightedText }
}
]
}
diff --git a/examples/declarative/minehunt/Explosion.qml b/examples/declarative/minehunt/Explosion.qml
index b1fe848..9b8bd6e 100644
--- a/examples/declarative/minehunt/Explosion.qml
+++ b/examples/declarative/minehunt/Explosion.qml
@@ -20,9 +20,9 @@ Item {
streamIn: false
}
states: [ State { name: "exploding"; when: explode == true
- SetProperties { target: particles; count: 200 }
- SetProperties { target: particles; opacity: 1 }
- SetProperties { target: particles; emitting: false } // i.e. emit only once
+ PropertyChanges { target: particles; count: 200 }
+ PropertyChanges { target: particles; opacity: 1 }
+ PropertyChanges { target: particles; emitting: false } // i.e. emit only once
}
]
diff --git a/examples/declarative/minehunt/minehunt.qml b/examples/declarative/minehunt/minehunt.qml
index b3bcaf3..ac1b398 100644
--- a/examples/declarative/minehunt/minehunt.qml
+++ b/examples/declarative/minehunt/minehunt.qml
@@ -69,7 +69,7 @@ Item {
State {
name: "back"
when: modelData.flipped
- SetProperties { target: flipable; angle: 180 }
+ PropertyChanges { target: flipable; angle: 180 }
}
]
transitions: [
diff --git a/examples/declarative/scrollbar/display.qml b/examples/declarative/scrollbar/display.qml
index 1359c4b..639a8cc 100644
--- a/examples/declarative/scrollbar/display.qml
+++ b/examples/declarative/scrollbar/display.qml
@@ -18,8 +18,8 @@ Rectangle {
State {
name: "ShowBars"
when: View.moving
- SetProperties { target: SBV; opacity: 1 }
- SetProperties { target: SBH; opacity: 1 }
+ PropertyChanges { target: SBV; opacity: 1 }
+ PropertyChanges { target: SBH; opacity: 1 }
}
]
transitions: [
diff --git a/examples/declarative/slideswitch/Switch.qml b/examples/declarative/slideswitch/Switch.qml
index b476be2..a778c1a 100644
--- a/examples/declarative/slideswitch/Switch.qml
+++ b/examples/declarative/slideswitch/Switch.qml
@@ -41,13 +41,13 @@ Item {
states: [
State {
name: "On"
- SetProperties { target: Knob; x: 78 }
- SetProperties { target: Switch; on: true }
+ PropertyChanges { target: Knob; x: 78 }
+ PropertyChanges { target: Switch; on: true }
},
State {
name: "Off"
- SetProperties { target: Knob; x: 1 }
- SetProperties { target: Switch; on: false }
+ PropertyChanges { target: Knob; x: 1 }
+ PropertyChanges { target: Switch; on: false }
}
]
transitions: [
diff --git a/examples/declarative/snow/ImageBatch.qml b/examples/declarative/snow/ImageBatch.qml
index 1506943..4cf4259 100644
--- a/examples/declarative/snow/ImageBatch.qml
+++ b/examples/declarative/snow/ImageBatch.qml
@@ -18,7 +18,7 @@ GridView {
states: State {
name: "selected"; when: MyGrid.isSelected
- SetProperties { target: MyGrid; z: 150 }
+ PropertyChanges { target: MyGrid; z: 150 }
}
transitions: Transition {
SequentialAnimation {
@@ -48,7 +48,7 @@ GridView {
states: State {
name: "selected"
when: Root.isSelected
- SetProperties { target: Root; scale: 3; z: 100 }
+ PropertyChanges { target: Root; scale: 3; z: 100 }
}
transitions: [
Transition {
diff --git a/examples/declarative/states/states.qml b/examples/declarative/states/states.qml
index 2dcf804..d91b558 100644
--- a/examples/declarative/states/states.qml
+++ b/examples/declarative/states/states.qml
@@ -28,7 +28,7 @@ Rectangle {
// In state 'Position1', change the 'myrect' item x, y to 150, 50.
State {
name: "Position1"
- SetProperties {
+ PropertyChanges {
target: myrect
x: 150
y: 50
@@ -39,7 +39,7 @@ Rectangle {
// had been changed.
State {
name: "Position2"
- SetProperties {
+ PropertyChanges {
target: myrect
y: 200
}
diff --git a/examples/declarative/states/transitions.qml b/examples/declarative/states/transitions.qml
index 15c2336..0be9b01 100644
--- a/examples/declarative/states/transitions.qml
+++ b/examples/declarative/states/transitions.qml
@@ -28,7 +28,7 @@ Rectangle {
// In state 'Position1', change the 'myrect' item x, y to 150, 50.
State {
name: "Position1"
- SetProperties {
+ PropertyChanges {
target: myrect
x: 150
y: 50
@@ -39,7 +39,7 @@ Rectangle {
// had been changed.
State {
name: "Position2"
- SetProperties {
+ PropertyChanges {
target: myrect
y: 200
}
diff --git a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4/RemoveButton.qml b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4/RemoveButton.qml
index 6ceec91..ed74c4c 100644
--- a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4/RemoveButton.qml
@@ -81,23 +81,23 @@ Rectangle {
states: [
State {
name: "opened"
- SetProperties {
+ PropertyChanges {
target: removeButton
width: 230
}
- SetProperties {
+ PropertyChanges {
target: text
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: confirmIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: cancelIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: trashIcon
opacity: 0
}
diff --git a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4a/RemoveButton.qml b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4a/RemoveButton.qml
index 6ddb770..7dc95c8 100644
--- a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4a/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/4a/RemoveButton.qml
@@ -88,23 +88,23 @@ Rectangle {
states: [
State {
name: "opened"
- SetProperties {
+ PropertyChanges {
target: removeButton
width: 230
}
- SetProperties {
+ PropertyChanges {
target: text
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: confirmIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: cancelIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: trashIcon
opacity: 0
}
diff --git a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/5/RemoveButton.qml b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/5/RemoveButton.qml
index d712c7a..d75eedc 100644
--- a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/5/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/5/RemoveButton.qml
@@ -76,23 +76,23 @@ Rectangle {
states: [
State {
name: "opened"
- SetProperties {
+ PropertyChanges {
target: removeButton
width: 230
}
- SetProperties {
+ PropertyChanges {
target: text
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: confirmIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: cancelIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: trashIcon
opacity: 0
}
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/1/RemoveButton.qml b/examples/declarative/tutorials/contacts/2_Reuse/1/RemoveButton.qml
index 960b007..de9f15a 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/1/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/1/RemoveButton.qml
@@ -76,23 +76,23 @@ Rectangle {
states: [
State {
name: "opened"
- SetProperties {
+ PropertyChanges {
target: removeButton
width: 230
}
- SetProperties {
+ PropertyChanges {
target: text
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: confirmIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: cancelIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: trashIcon
opacity: 0
}
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/1a/RemoveButton.qml b/examples/declarative/tutorials/contacts/2_Reuse/1a/RemoveButton.qml
index 960b007..de9f15a 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/1a/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/1a/RemoveButton.qml
@@ -76,23 +76,23 @@ Rectangle {
states: [
State {
name: "opened"
- SetProperties {
+ PropertyChanges {
target: removeButton
width: 230
}
- SetProperties {
+ PropertyChanges {
target: text
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: confirmIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: cancelIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: trashIcon
opacity: 0
}
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/1b/lib/RemoveButton.qml b/examples/declarative/tutorials/contacts/2_Reuse/1b/lib/RemoveButton.qml
index e7a37c2..07a0814 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/1b/lib/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/1b/lib/RemoveButton.qml
@@ -78,23 +78,23 @@ Rectangle {
states: [
State {
name: "opened"
- SetProperties {
+ PropertyChanges {
target: removeButton
width: 230
}
- SetProperties {
+ PropertyChanges {
target: text
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: confirmIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: cancelIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: trashIcon
opacity: 0
}
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml b/examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml
index affa24a..be5f871 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml
@@ -83,24 +83,24 @@ Rectangle {
State {
name: "opened"
//! [use width]
- SetProperties {
+ PropertyChanges {
target: removeButton
width: removeButton.expandedWidth
}
//! [use width]
- SetProperties {
+ PropertyChanges {
target: text
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: confirmIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: cancelIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: trashIcon
opacity: 0
}
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/3/ContactField.qml b/examples/declarative/tutorials/contacts/2_Reuse/3/ContactField.qml
index 7957ed1..0b9c02a 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/3/ContactField.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/3/ContactField.qml
@@ -36,11 +36,11 @@ Item {
State {
name: "editingText"
when: fieldText.state == 'editing'
- SetProperties {
+ PropertyChanges {
target: removeButton.anchors
rightMargin: -35
}
- SetProperties {
+ PropertyChanges {
target: fieldText
width: contactField.width
}
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/3/FieldText.qml b/examples/declarative/tutorials/contacts/2_Reuse/3/FieldText.qml
index 77952eb..8a9424f 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/3/FieldText.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/3/FieldText.qml
@@ -96,31 +96,31 @@ Rectangle {
states: [
State {
name: "editing"
- SetProperties {
+ PropertyChanges {
target: confirmIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: cancelIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: textEdit
readOnly: false
}
- SetProperties {
+ PropertyChanges {
target: textEdit
focus: true
}
- SetProperties {
+ PropertyChanges {
target: editRegion
opacity: 0
}
- SetProperties {
+ PropertyChanges {
target: textEdit.anchors
leftMargin: 39
}
- SetProperties {
+ PropertyChanges {
target: textEdit.anchors
rightMargin: 39
}
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/3/RemoveButton.qml b/examples/declarative/tutorials/contacts/2_Reuse/3/RemoveButton.qml
index 66ab36e..fc260e3 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/3/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/3/RemoveButton.qml
@@ -79,23 +79,23 @@ Rectangle {
states: [
State {
name: "opened"
- SetProperties {
+ PropertyChanges {
target: removeButton
width: removeButton.expandedWidth
}
- SetProperties {
+ PropertyChanges {
target: text
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: confirmIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: cancelIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: trashIcon
opacity: 0
}
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/4/ContactField.qml b/examples/declarative/tutorials/contacts/2_Reuse/4/ContactField.qml
index d637fa6..691918f 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/4/ContactField.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/4/ContactField.qml
@@ -34,11 +34,11 @@ Item {
State {
name: "editingText"
when: fieldText.state == 'editing'
- SetProperties {
+ PropertyChanges {
target: removeButton.anchors
rightMargin: -35
}
- SetProperties {
+ PropertyChanges {
target: fieldText
width: contactField.width
}
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/4/FieldText.qml b/examples/declarative/tutorials/contacts/2_Reuse/4/FieldText.qml
index f211213..62fb08f 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/4/FieldText.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/4/FieldText.qml
@@ -97,31 +97,31 @@ Rectangle {
states: [
State {
name: "editing"
- SetProperties {
+ PropertyChanges {
target: confirmIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: cancelIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: textEdit
readOnly: false
}
- SetProperties {
+ PropertyChanges {
target: textEdit
focus: true
}
- SetProperties {
+ PropertyChanges {
target: editRegion
opacity: 0
}
- SetProperties {
+ PropertyChanges {
target: textEdit.anchors
leftMargin: 39
}
- SetProperties {
+ PropertyChanges {
target: textEdit.anchors
rightMargin: 39
}
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/4/RemoveButton.qml b/examples/declarative/tutorials/contacts/2_Reuse/4/RemoveButton.qml
index ed60d00..abf8fd9 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/4/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/4/RemoveButton.qml
@@ -84,23 +84,23 @@ Rectangle {
states: [
State {
name: "opened"
- SetProperties {
+ PropertyChanges {
target: removeButton
width: removeButton.expandedWidth
}
- SetProperties {
+ PropertyChanges {
target: text
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: confirmIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: cancelIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: trashIcon
opacity: 0
}
diff --git a/examples/declarative/tutorials/contacts/3_Collections/2/ContactView.qml b/examples/declarative/tutorials/contacts/3_Collections/2/ContactView.qml
index 13e2ab1..d16e3ca 100644
--- a/examples/declarative/tutorials/contacts/3_Collections/2/ContactView.qml
+++ b/examples/declarative/tutorials/contacts/3_Collections/2/ContactView.qml
@@ -73,24 +73,24 @@ Item {
states: [
State {
name: "opened"
- SetProperties {
+ PropertyChanges {
target: wrapper
height: contactListView.height
}
- SetProperties {
+ PropertyChanges {
target: contactListView
explicit: true
yPosition: wrapper.y
}
- SetProperties {
+ PropertyChanges {
target: contactListView
locked: 1
}
- SetProperties {
+ PropertyChanges {
target: label
opacity: 0
}
- SetProperties {
+ PropertyChanges {
target: Details
opacity: 1
}
diff --git a/examples/declarative/tutorials/contacts/3_Collections/3/ContactView.qml b/examples/declarative/tutorials/contacts/3_Collections/3/ContactView.qml
index eac43c7..bf73367 100644
--- a/examples/declarative/tutorials/contacts/3_Collections/3/ContactView.qml
+++ b/examples/declarative/tutorials/contacts/3_Collections/3/ContactView.qml
@@ -91,24 +91,24 @@ Item {
states: [
State {
name: "opened"
- SetProperties {
+ PropertyChanges {
target: wrapper
height: contactListView.height
}
- SetProperties {
+ PropertyChanges {
target: contactListView
explicit: true
yPosition: wrapper.y
}
- SetProperties {
+ PropertyChanges {
target: contactListView
locked: 1
}
- SetProperties {
+ PropertyChanges {
target: label
opacity: 0
}
- SetProperties {
+ PropertyChanges {
target: Details
opacity: 1
}
diff --git a/examples/declarative/tutorials/contacts/3_Collections/lib/Button.qml b/examples/declarative/tutorials/contacts/3_Collections/lib/Button.qml
index bdfc22e..476f170 100644
--- a/examples/declarative/tutorials/contacts/3_Collections/lib/Button.qml
+++ b/examples/declarative/tutorials/contacts/3_Collections/lib/Button.qml
@@ -26,7 +26,7 @@ Item {
State {
name: "pressed"
when: buttonMouseRegion.pressed == true
- SetProperties {
+ PropertyChanges {
target: buttonRect
color: "green"
}
diff --git a/examples/declarative/tutorials/contacts/3_Collections/lib/ContactField.qml b/examples/declarative/tutorials/contacts/3_Collections/lib/ContactField.qml
index d637fa6..691918f 100644
--- a/examples/declarative/tutorials/contacts/3_Collections/lib/ContactField.qml
+++ b/examples/declarative/tutorials/contacts/3_Collections/lib/ContactField.qml
@@ -34,11 +34,11 @@ Item {
State {
name: "editingText"
when: fieldText.state == 'editing'
- SetProperties {
+ PropertyChanges {
target: removeButton.anchors
rightMargin: -35
}
- SetProperties {
+ PropertyChanges {
target: fieldText
width: contactField.width
}
diff --git a/examples/declarative/tutorials/contacts/3_Collections/lib/FieldText.qml b/examples/declarative/tutorials/contacts/3_Collections/lib/FieldText.qml
index 0dc0bf9..e05708f 100644
--- a/examples/declarative/tutorials/contacts/3_Collections/lib/FieldText.qml
+++ b/examples/declarative/tutorials/contacts/3_Collections/lib/FieldText.qml
@@ -97,31 +97,31 @@ Rectangle {
states: [
State {
name: "editing"
- SetProperties {
+ PropertyChanges {
target: confirmIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: cancelIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: textEdit
readOnly: false
}
- SetProperties {
+ PropertyChanges {
target: textEdit
focus: true
}
- SetProperties {
+ PropertyChanges {
target: editRegion
opacity: 0
}
- SetProperties {
+ PropertyChanges {
target: textEdit.anchors
leftMargin: 39
}
- SetProperties {
+ PropertyChanges {
target: textEdit.anchors
rightMargin: 39
}
diff --git a/examples/declarative/tutorials/contacts/3_Collections/lib/RemoveButton.qml b/examples/declarative/tutorials/contacts/3_Collections/lib/RemoveButton.qml
index af878b4..6bca8b9 100644
--- a/examples/declarative/tutorials/contacts/3_Collections/lib/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/3_Collections/lib/RemoveButton.qml
@@ -82,24 +82,24 @@ Rectangle {
states: [
State {
name: "opened"
- SetProperties {
+ PropertyChanges {
target: removeButton
explicit: true
width: removeButton.expandedWidth
}
- SetProperties {
+ PropertyChanges {
target: text
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: confirmIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: cancelIcon
opacity: 1
}
- SetProperties {
+ PropertyChanges {
target: trashIcon
opacity: 0
}
diff --git a/examples/declarative/tutorials/helloworld/t3/tutorial3.qml b/examples/declarative/tutorials/helloworld/t3/tutorial3.qml
index bab9f86..b652eac 100644
--- a/examples/declarative/tutorials/helloworld/t3/tutorial3.qml
+++ b/examples/declarative/tutorials/helloworld/t3/tutorial3.qml
@@ -16,7 +16,7 @@ Rectangle {
State {
name: "down"
when: MouseRegion.pressed == true
- SetProperties {
+ PropertyChanges {
target: HelloText
y: 160
color: "red"
diff --git a/examples/declarative/velocity/Day.qml b/examples/declarative/velocity/Day.qml
index f3f13fa..e488ae1 100644
--- a/examples/declarative/velocity/Day.qml
+++ b/examples/declarative/velocity/Day.qml
@@ -88,12 +88,12 @@ Rectangle {
State {
name: "pressed"
when: Mouse.pressed
- SetProperties {
+ PropertyChanges {
target: Sticky
rotation: 8
scale: 1
}
- SetProperties {
+ PropertyChanges {
target: Page
z: 8
}
diff --git a/examples/declarative/xmldata/yahoonews.qml b/examples/declarative/xmldata/yahoonews.qml
index d170dac..d7d47b1 100644
--- a/examples/declarative/xmldata/yahoonews.qml
+++ b/examples/declarative/xmldata/yahoonews.qml
@@ -66,8 +66,8 @@ Rectangle {
states: [
State {
name: "Details"
- SetProperties { target: Wrapper; height: childrenRect.height + 10 }
- SetProperties { target: Description; opacity: 1 }
+ PropertyChanges { target: Wrapper; height: childrenRect.height + 10 }
+ PropertyChanges { target: Description; opacity: 1 }
}
]
transitions: [