Add transitions for image appearance

This commit is contained in:
Luca Beltrame 2015-02-07 15:40:40 +01:00
parent bec49f9bb7
commit 8b625da6a0

View file

@ -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}
}
}
}