forked from qt-creator/qt-creator
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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user