diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-05-11 23:56:41 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-05-11 23:56:41 (GMT) |
commit | 419118871087d6ed47065129459fa3c3db97f14f (patch) | |
tree | 96d66619f72582de6526579a3ad285df17ff154c /demos/declarative/flickr | |
parent | 036970e7d8c6b2e046ab11924d278c36df8c1c51 (diff) | |
download | Qt-419118871087d6ed47065129459fa3c3db97f14f.zip Qt-419118871087d6ed47065129459fa3c3db97f14f.tar.gz Qt-419118871087d6ed47065129459fa3c3db97f14f.tar.bz2 |
Fix resizing and skinning.
Broke with mainwindow introduction.
Diffstat (limited to 'demos/declarative/flickr')
-rw-r--r-- | demos/declarative/flickr/flickr.qml | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/demos/declarative/flickr/flickr.qml b/demos/declarative/flickr/flickr.qml index fa3bc35..b33b00f 100644 --- a/demos/declarative/flickr/flickr.qml +++ b/demos/declarative/flickr/flickr.qml @@ -119,8 +119,10 @@ Item { Item { id: Background + + anchors.fill: parent - Image { source: "content/pics/background.png"; opaque: true } + Image { source: "content/pics/background.png"; opaque: true; anchors.fill: parent } GridView { id: PhotoGridView; model: FeedModel; delegate: PhotoDelegate; cacheBuffer: 100 @@ -203,4 +205,25 @@ Item { (FeedModel.tags=="" ? "Uploads from everyone" : "Recent Uploads tagged " + FeedModel.tags) font.size: 16; font.bold: true; color: "white"; style: "Raised"; styleColor: "black" } + + Image { + source: "content/pics/fingerpoint.png" + opacity: finger.pressed ? 0 : 1 + x: finger.mouseX-16 + y: finger.mouseY-16 + } + + Image { + source: "content/pics/fingerpoint-pressed.png" + opacity: finger.pressed ? 1.0 : 0.0 + x: finger.mouseX-16 + y: finger.mouseY-16 + } + + MouseRegion { + // this region is just to show where the finger is (good for videos) + id: finger + absorb: false + anchors.fill: parent + } } |