From e2ce74f5a69d1d541c73f2ee2d23aa3e3654f3b4 Mon Sep 17 00:00:00 2001 From: Ulf Hermann <ulf.hermann@digia.com> Date: Mon, 2 Dec 2013 17:28:18 +0100 Subject: [PATCH] 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> --- share/qtcreator/welcomescreen/examples.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/share/qtcreator/welcomescreen/examples.qml b/share/qtcreator/welcomescreen/examples.qml index 8e256362c6b..b485aed5400 100644 --- a/share/qtcreator/welcomescreen/examples.qml +++ b/share/qtcreator/welcomescreen/examples.qml @@ -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 } -- GitLab