From 51bfb7e3516334665ac841f6dbf68cb0cb853ead Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 15 Mar 2012 12:55:33 +0100 Subject: [PATCH] WelcomePage: fix scrolling of sessions Change-Id: I8a30d94040fa6fffe318c98782120123093d6666 Reviewed-by: Alessandro Portale --- share/qtcreator/welcomescreen/widgets/Sessions.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/share/qtcreator/welcomescreen/widgets/Sessions.qml b/share/qtcreator/welcomescreen/widgets/Sessions.qml index ac8970c7666..134ff1fff82 100644 --- a/share/qtcreator/welcomescreen/widgets/Sessions.qml +++ b/share/qtcreator/welcomescreen/widgets/Sessions.qml @@ -76,8 +76,7 @@ Item { anchors.fill: parent verticalMinimumValue: vscrollbar.minimumValue verticalMaximumValue: vscrollbar.maximumValue - - onVerticalValueChanged: root.contentY = Math.round(verticalValue / root.delegateHeight) * root.delegateHeight + onVerticalValueChanged: root.contentY = verticalValue } ScrollBar { @@ -92,7 +91,7 @@ Item { anchors.bottom: parent.bottom singleStep: root.delegateHeight anchors.topMargin: styleitem.style === "mac" ? 1 : 0 - onValueChanged: root.contentY = Math.round(value / root.delegateHeight) * root.delegateHeight + onValueChanged: root.contentY = value anchors.rightMargin: styleitem.frameoffset anchors.bottomMargin: styleitem.frameoffset value: root.contentY