summaryrefslogtreecommitdiffstats
path: root/demos/declarative/flickr
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 /demos/declarative/flickr
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 'demos/declarative/flickr')
-rw-r--r--demos/declarative/flickr/content/ImageDetails.qml2
-rw-r--r--demos/declarative/flickr/content/MediaButton.qml2
-rw-r--r--demos/declarative/flickr/content/MediaLineEdit.qml14
-rw-r--r--demos/declarative/flickr/content/ScrollBar.qml2
-rw-r--r--demos/declarative/flickr/content/Star.qml2
-rw-r--r--demos/declarative/flickr/flickr.qml26
-rw-r--r--demos/declarative/flickr/flickr2.qml28
7 files changed, 38 insertions, 38 deletions
diff --git a/demos/declarative/flickr/content/ImageDetails.qml b/demos/declarative/flickr/content/ImageDetails.qml
index bfa3e01..5db1e99 100644
--- a/demos/declarative/flickr/content/ImageDetails.qml
+++ b/demos/declarative/flickr/content/ImageDetails.qml
@@ -136,7 +136,7 @@ Flipable {
states: [
State {
name: "Back"
- SetProperties { target: Rotation; angle: 180 }
+ PropertyChanges { target: Rotation; angle: 180 }
}
]
diff --git a/demos/declarative/flickr/content/MediaButton.qml b/demos/declarative/flickr/content/MediaButton.qml
index 2a6dbae..0ffd596 100644
--- a/demos/declarative/flickr/content/MediaButton.qml
+++ b/demos/declarative/flickr/content/MediaButton.qml
@@ -32,7 +32,7 @@ Item {
State {
name: "Pressed"
when: MouseRegion.pressed == true
- SetProperties {
+ PropertyChanges {
target: Pressed
opacity: 1
}
diff --git a/demos/declarative/flickr/content/MediaLineEdit.qml b/demos/declarative/flickr/content/MediaLineEdit.qml
index 1642d44..500a402 100644
--- a/demos/declarative/flickr/content/MediaLineEdit.qml
+++ b/demos/declarative/flickr/content/MediaLineEdit.qml
@@ -12,30 +12,30 @@ Item {
states: [
State {
name: "Edit"
- SetProperties {
+ PropertyChanges {
target: Label
text: Container.label + ": "
}
- SetProperties {
+ PropertyChanges {
target: Label
x: 10
}
- SetProperties {
+ PropertyChanges {
target: Editor
cursorVisible: true
width: 100
}
- SetProperties {
+ PropertyChanges {
target: Proxy
focus: true
}
- RunScript {
+ StateChangeScript {
script:"Editor.selectAll()"
}
},
State {
// When returning to default state, typed text is propagated
- RunScript {
+ StateChangeScript {
script: "Container.text = Editor.text"
}
}
@@ -69,7 +69,7 @@ Item {
states: [
State {
when: MouseRegion.pressed == true
- SetProperties {
+ PropertyChanges {
target: Pressed
opacity: 1
}
diff --git a/demos/declarative/flickr/content/ScrollBar.qml b/demos/declarative/flickr/content/ScrollBar.qml
index 9c78326..540f94f 100644
--- a/demos/declarative/flickr/content/ScrollBar.qml
+++ b/demos/declarative/flickr/content/ScrollBar.qml
@@ -20,7 +20,7 @@ Item {
State {
name: "show"
when: flickableArea.moving
- SetProperties {
+ PropertyChanges {
target: Container
opacity: 1
}
diff --git a/demos/declarative/flickr/content/Star.qml b/demos/declarative/flickr/content/Star.qml
index 5a6a95d..006e86ad 100644
--- a/demos/declarative/flickr/content/Star.qml
+++ b/demos/declarative/flickr/content/Star.qml
@@ -26,7 +26,7 @@ Item {
State {
name: "on"
when: Container.on == true
- SetProperties {
+ PropertyChanges {
target: Image
opacity: 1
scale: 1
diff --git a/demos/declarative/flickr/flickr.qml b/demos/declarative/flickr/flickr.qml
index e4d7fe2..81134d3 100644
--- a/demos/declarative/flickr/flickr.qml
+++ b/demos/declarative/flickr/flickr.qml
@@ -83,18 +83,18 @@ Item {
states: [
State {
name: "Details"
- SetProperties { target: ImageDetails; z: 2 }
+ PropertyChanges { target: ImageDetails; z: 2 }
ParentChange { target: Wrapper; parent: ImageDetails.frontContainer }
- SetProperties { target: Wrapper; x: 45; y: 35; scale: 1; z: 1000 }
- SetProperties { target: Rotation; angle: 0 }
- SetProperties { target: Shadows; opacity: 0 }
- SetProperties { target: ImageDetails; y: 20 }
- SetProperties { target: PhotoGridView; y: "-480" }
- SetProperties { target: PhotoPathView; y: "-480" }
- SetProperties { target: ViewModeButton; opacity: 0 }
- SetProperties { target: TagsEdit; opacity: 0 }
- SetProperties { target: FetchButton; opacity: 0 }
- SetProperties { target: CategoryText; y: "-50" }
+ PropertyChanges { target: Wrapper; x: 45; y: 35; scale: 1; z: 1000 }
+ PropertyChanges { target: Rotation; angle: 0 }
+ PropertyChanges { target: Shadows; opacity: 0 }
+ PropertyChanges { target: ImageDetails; y: 20 }
+ PropertyChanges { target: PhotoGridView; y: "-480" }
+ PropertyChanges { target: PhotoPathView; y: "-480" }
+ PropertyChanges { target: ViewModeButton; opacity: 0 }
+ PropertyChanges { target: TagsEdit; opacity: 0 }
+ PropertyChanges { target: FetchButton; opacity: 0 }
+ PropertyChanges { target: CategoryText; y: "-50" }
}
]
@@ -189,8 +189,8 @@ Item {
State {
name: "PathView"
when: MainWindow.showPathView == true
- SetProperties { target: PhotoPathView; y: 80 }
- SetProperties { target: PhotoGridView; y: -380 }
+ PropertyChanges { target: PhotoPathView; y: 80 }
+ PropertyChanges { target: PhotoGridView; y: -380 }
}
]
diff --git a/demos/declarative/flickr/flickr2.qml b/demos/declarative/flickr/flickr2.qml
index 5fb580c..1c28d51 100644
--- a/demos/declarative/flickr/flickr2.qml
+++ b/demos/declarative/flickr/flickr2.qml
@@ -82,18 +82,18 @@ Item {
states: [
State {
name: "Details"
- SetProperties { target: Background.imageDetails; z: 2 }
+ PropertyChanges { target: Background.imageDetails; z: 2 }
ParentChange { target: Wrapper; parent: Background.imageDetails.frontContainer }
- SetProperties { target: Wrapper; x: 45; y: 35; scale: 1; z: 1000 }
- SetProperties { target: Rotation; angle: 0 }
- SetProperties { target: Shadows; opacity: 0 }
- SetProperties { target: Background.imageDetails; y: 20 }
- SetProperties { target: PhotoGridView; y: "-480" }
- SetProperties { target: PhotoPathView; y: "-480" }
- SetProperties { target: ViewModeButton; opacity: 0 }
- SetProperties { target: TagsEdit; opacity: 0 }
- SetProperties { target: FetchButton; opacity: 0 }
- SetProperties { target: CategoryText; y: "-50" }
+ PropertyChanges { target: Wrapper; x: 45; y: 35; scale: 1; z: 1000 }
+ PropertyChanges { target: Rotation; angle: 0 }
+ PropertyChanges { target: Shadows; opacity: 0 }
+ PropertyChanges { target: Background.imageDetails; y: 20 }
+ PropertyChanges { target: PhotoGridView; y: "-480" }
+ PropertyChanges { target: PhotoPathView; y: "-480" }
+ PropertyChanges { target: ViewModeButton; opacity: 0 }
+ PropertyChanges { target: TagsEdit; opacity: 0 }
+ PropertyChanges { target: FetchButton; opacity: 0 }
+ PropertyChanges { target: CategoryText; y: "-50" }
}
]
@@ -130,12 +130,12 @@ Item {
states: [
State {
name: "gridView"
- SetProperties { target: Wrapper; explicit: true; property: "moveToParent"; value: GridViewPackage }
+ PropertyChanges { target: Wrapper; explicit: true; property: "moveToParent"; value: GridViewPackage }
},
State {
name: "pathView"
- SetProperties { target: Wrapper; scale: PathViewPackage.PathView.scale; angle: PathViewPackage.PathView.angle; }
- SetProperties { target: Wrapper; explicit: true; moveToParent: PathViewPackage }
+ PropertyChanges { target: Wrapper; scale: PathViewPackage.PathView.scale; angle: PathViewPackage.PathView.angle; }
+ PropertyChanges { target: Wrapper; explicit: true; moveToParent: PathViewPackage }
}
]
transitions: [