[app] Tweaking BooksShelfView

It doesn't need to be flickable. Also, re-parented BooksDragArea
This commit is contained in:
Slava Monich 2015-12-01 19:00:55 +02:00
parent 2f435649b7
commit 26e651a932

View file

@ -33,7 +33,7 @@ import QtQuick 2.0
import Sailfish.Silica 1.0
import harbour.books 1.0
SilicaFlickable {
Item {
id: shelfView
property int shelfIndex
@ -254,6 +254,12 @@ SilicaFlickable {
easing.type: Easing.OutCubic
}
onActiveFocusChanged: console.log("BooksShelfView.grid", activeFocus)
Behavior on y { SpringAnimation {} }
VerticalScrollDecorator {}
}
BooksDragArea {
id: dragArea
dragParent: storageView
@ -264,13 +270,13 @@ SilicaFlickable {
}
}
onDropItem: shelfView.dropItem(mouseX, mouseY)
onActiveFocusChanged: console.log("BooksShelfView.grid.dragArea", activeFocus)
Component.onCompleted: {
console.log("BooksDragArea created")
grid.focus = true
}
Behavior on y { SpringAnimation {} }
VerticalScrollDecorator {}
}
Timer {
id: longStartTimer
interval: 500