aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2013-12-02 17:28:18 +0100
committerUlf Hermann <ulf.hermann@digia.com>2013-12-03 09:47:12 +0100
commite2ce74f5a69d1d541c73f2ee2d23aa3e3654f3b4 (patch)
treed3d68f5669f0e5018436dbf172af9e759117b29a
parent06a23c6da5a91c338396c3cbf8aa4d3c9d6fb838 (diff)
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>
-rw-r--r--share/qtcreator/welcomescreen/examples.qml8
1 files changed, 5 insertions, 3 deletions
diff --git a/share/qtcreator/welcomescreen/examples.qml b/share/qtcreator/welcomescreen/examples.qml
index 8e256362c6..b485aed540 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
}