summaryrefslogtreecommitdiffstats
path: root/demos/declarative/flickr/common
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative/flickr/common')
-rw-r--r--demos/declarative/flickr/common/ImageDetails.qml10
-rw-r--r--demos/declarative/flickr/common/MediaButton.qml12
-rw-r--r--demos/declarative/flickr/common/MediaLineEdit.qml10
-rw-r--r--demos/declarative/flickr/common/Star.qml4
4 files changed, 18 insertions, 18 deletions
diff --git a/demos/declarative/flickr/common/ImageDetails.qml b/demos/declarative/flickr/common/ImageDetails.qml
index dcd44eb..6b42910 100644
--- a/demos/declarative/flickr/common/ImageDetails.qml
+++ b/demos/declarative/flickr/common/ImageDetails.qml
@@ -19,7 +19,7 @@ Flipable {
signal closed
transform: Rotation {
- id: Rotation
+ id: DetailsRotation
origin.x: Container.width / 2;
axis.y: 1; axis.z: 0
}
@@ -48,7 +48,7 @@ Flipable {
LikeOMeter { x: 40; y: 250; rating: Container.rating }
- Flickable { id: Flickable; x: 220; width: 480; height: 210; y: 130; clip: true
+ Flickable { id: FlickSurface; x: 220; width: 480; height: 210; y: 130; clip: true
viewportWidth: 480; viewportHeight: DescriptionText.height
WebView { id: DescriptionText; width: parent.width
@@ -70,8 +70,8 @@ Flipable {
anchors.left: TagsLabel.right; anchors.top: Date.bottom;
elide: "ElideRight"; text: Container.photoTags }
- ScrollBar { id: ScrollBar; x: 720; y: Flickable.y; width: 7; height: Flickable.height; opacity: 0;
- flickableArea: Flickable; clip: true }
+ ScrollBar { id: ScrollBar; x: 720; y: FlickSurface.y; width: 7; height: FlickSurface.height; opacity: 0;
+ flickableArea: FlickSurface; clip: true }
}
back: Item {
@@ -136,7 +136,7 @@ Flipable {
states: [
State {
name: "Back"
- PropertyChanges { target: Rotation; angle: 180 }
+ PropertyChanges { target: DetailsRotation; angle: 180 }
}
]
diff --git a/demos/declarative/flickr/common/MediaButton.qml b/demos/declarative/flickr/common/MediaButton.qml
index 0ffd596..e1e09e8 100644
--- a/demos/declarative/flickr/common/MediaButton.qml
+++ b/demos/declarative/flickr/common/MediaButton.qml
@@ -8,7 +8,7 @@ Item {
property string text
Image {
- id: Image
+ id: ButtonImage
source: "pics/button.png"
}
Image {
@@ -17,21 +17,21 @@ Item {
opacity: 0
}
MouseRegion {
- id: MouseRegion
- anchors.fill: Image
+ id: MyMouseRegion
+ anchors.fill: ButtonImage
onClicked: { Container.clicked(); }
}
Text {
font.bold: true
color: "white"
- anchors.centerIn: Image
+ anchors.centerIn: ButtonImage
text: Container.text
}
- width: Image.width
+ width: ButtonImage.width
states: [
State {
name: "Pressed"
- when: MouseRegion.pressed == true
+ when: MyMouseRegion.pressed == true
PropertyChanges {
target: Pressed
opacity: 1
diff --git a/demos/declarative/flickr/common/MediaLineEdit.qml b/demos/declarative/flickr/common/MediaLineEdit.qml
index 500a402..eab0b95 100644
--- a/demos/declarative/flickr/common/MediaLineEdit.qml
+++ b/demos/declarative/flickr/common/MediaLineEdit.qml
@@ -7,7 +7,7 @@ Item {
property string text
width: Math.max(94,Label.width + Editor.width + 20)
- height: Image.height
+ height: ButtonImage.height
states: [
State {
@@ -48,7 +48,7 @@ Item {
BorderImage {
- id: Image
+ id: ButtonImage
source: "pics/button.sci"
anchors.left: Container.left
anchors.right: Container.right
@@ -63,12 +63,12 @@ Item {
}
MouseRegion {
- id: MouseRegion
- anchors.fill: Image
+ id: MyMouseRegion
+ anchors.fill: ButtonImage
onClicked: { Container.state = Container.state=="Edit" ? "" : "Edit" }
states: [
State {
- when: MouseRegion.pressed == true
+ when: MyMouseRegion.pressed == true
PropertyChanges {
target: Pressed
opacity: 1
diff --git a/demos/declarative/flickr/common/Star.qml b/demos/declarative/flickr/common/Star.qml
index 006e86ad..c4d1bec 100644
--- a/demos/declarative/flickr/common/Star.qml
+++ b/demos/declarative/flickr/common/Star.qml
@@ -11,7 +11,7 @@ Item {
signal clicked
Image {
- id: Image
+ id: StarImage
source: "pics/ghns_star.png"
x: 6
y: 7
@@ -27,7 +27,7 @@ Item {
name: "on"
when: Container.on == true
PropertyChanges {
- target: Image
+ target: StarImage
opacity: 1
scale: 1
x: 1