WelcomeScreen: Scroll the example grid view with the main scroll view

By tying the scroll offsets and visible areas of the two scrollable
elements together we avoid excessive loading times for the examples.

Change-Id: I6522ef3e6c0454e5bb05bef143953d8d1850ffdc
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Ulf Hermann
2013-12-02 17:28:18 +01:00
parent 06a23c6da5
commit e2ce74f5a6

View File

@@ -38,10 +38,12 @@ Rectangle {
CustomizedGridView {
id: grid
anchors.rightMargin: 38
anchors.bottomMargin: 60
anchors.leftMargin: 38
anchors.topMargin: 82
anchors.fill: parent
anchors.left: parent.left
anchors.right: parent.right
height: scrollView.height - 82
y: scrollView.flickableItem.contentY + 82
contentY: scrollView.flickableItem.contentY
model: examplesModel
}