From 8b625da6a06a9696d26a69e76a4e9e0c3488c81b Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 7 Feb 2015 15:40:40 +0100 Subject: [PATCH] Add transitions for image appearance --- src/qml/danbooruimageview.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/qml/danbooruimageview.qml b/src/qml/danbooruimageview.qml index 4bdc24a..45993e8 100644 --- a/src/qml/danbooruimageview.qml +++ b/src/qml/danbooruimageview.qml @@ -61,6 +61,7 @@ Rectangle { anchors.fill: parent QPixmapItem { + id: pixItem pixmap: thumbPix anchors.horizontalCenter: parent.horizontalCenter @@ -77,7 +78,6 @@ Rectangle { hoverEnabled: true onClicked: { grid.currentIndex = index - console.log(fileUrl) } onEntered: { @@ -197,10 +197,14 @@ Rectangle { Component.onCompleted: currentIndex = -1 onAtYEndChanged: { if (grid.atYEnd) { - // danbooruService.getPostList(2, "", 10) + danbooruService.getPostList(2, "", 10) } } + add: Transition { + NumberAnimation { property: "opacity"; from: 0; to: 1; duration: 250} + } + } }