Take QApplication::wheelScrollLines into account from ScrollView

This is adaptation of https://codereview.qt-project.org/#/c/109615/
for Plasma style.

REVIEW: 125889
This commit is contained in:
David Rosca 2015-11-06 12:02:28 +01:00
parent ae4ba8920e
commit f32677b8e0

View File

@ -30,6 +30,9 @@ QtQuickControlStyle.ScrollViewStyle {
property real widthHint: Math.round( (scrollbarSvg.hasElement("hint-scrollbar-size") ? scrollbarSvg.elementSize("hint-scrollbar-size").width : scrollbarSvg.elementSize("arrow-up").width) * units.devicePixelRatio)
property StyleItem __styleitem: StyleItem { elementType: "frame" }
readonly property int __wheelScrollLines: __styleitem.styleHint("wheelScrollLines")
transientScrollBars: Settings.hasTouchScreen && Settings.isMobile
function syncVelocity() {