diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-05-08 04:06:02 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-05-08 04:06:02 (GMT) |
commit | 089bcd8a643dc206e23cac14c5fc03fc0acb02d8 (patch) | |
tree | 67ed9d2bf46a3acb374755eb38e361492c8ac436 /demos | |
parent | 6d0c538babba81eeef2703602320f159b41462ab (diff) | |
download | Qt-089bcd8a643dc206e23cac14c5fc03fc0acb02d8.zip Qt-089bcd8a643dc206e23cac14c5fc03fc0acb02d8.tar.gz Qt-089bcd8a643dc206e23cac14c5fc03fc0acb02d8.tar.bz2 |
Add tags to flickr2
Diffstat (limited to 'demos')
-rw-r--r-- | demos/declarative/flickr/flickr2.qml | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/demos/declarative/flickr/flickr2.qml b/demos/declarative/flickr/flickr2.qml index d1fc0cd..52f8675 100644 --- a/demos/declarative/flickr/flickr2.qml +++ b/demos/declarative/flickr/flickr2.qml @@ -10,7 +10,7 @@ Item { model: XmlListModel { id: FeedModel - property string tags : "" + property string tags : TagsEdit.text source: "http://api.flickr.com/services/feeds/photos_public.gne?"+(tags ? "tags="+tags+"&" : "")+"format=rss2" query: "doc($src)/rss/channel/item" namespaceDeclarations: "declare namespace media=\"http://search.yahoo.com/mrss/\";" @@ -89,7 +89,8 @@ Item { SetProperties { target: Background.imageDetails; y: 20 } SetProperties { target: PhotoGridView; y: "-480" } SetProperties { target: PhotoPathView; y: "-480" } - SetProperties { target: CloseButton; opacity: 0 } + SetProperties { target: ViewModeButton; opacity: 0 } + SetProperties { target: TagsEdit; opacity: 0 } SetProperties { target: FetchButton; opacity: 0 } SetProperties { target: CategoryText; y: "-50" } } @@ -232,17 +233,25 @@ Item { ImageDetails { id: ImageDetails; width: 750; x: 25; y: 500; height: 410 } MediaButton { - id: CloseButton; x: 680; y: 410; text: "View Mode" + id: ViewModeButton; x: 680; y: 410; text: "View Mode" onClicked: { if (MainWindow.showPathView == true) MainWindow.showPathView = false; else MainWindow.showPathView = true } } MediaButton { id: FetchButton text: "Update" - anchors.right: CloseButton.left; anchors.rightMargin: 5 - anchors.top: CloseButton.top + anchors.right: ViewModeButton.left; anchors.rightMargin: 5 + anchors.top: ViewModeButton.top onClicked: { FeedModel.reload(); } } + + MediaLineEdit { + id: TagsEdit; + label: "Tags" + anchors.right: FetchButton.left; anchors.rightMargin: 5 + anchors.top: ViewModeButton.top + } + } Text { |