on touchscreen and mobile scrollbars are transient

Change-Id: I81b2986b4ca0486b59e8bd400cd8e2603a54e040
This commit is contained in:
Marco Martin 2015-08-05 14:53:49 +02:00
parent 04d946e786
commit 0aca608bda

View File

@ -20,6 +20,7 @@
import QtQuick 2.0 import QtQuick 2.0
import QtQuick.Controls.Styles 1.1 as QtQuickControlStyle import QtQuick.Controls.Styles 1.1 as QtQuickControlStyle
import QtQuick.Controls.Private 1.0
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents import org.kde.plasma.components 2.0 as PlasmaComponents
@ -29,7 +30,7 @@ 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 real widthHint: Math.round( (scrollbarSvg.hasElement("hint-scrollbar-size") ? scrollbarSvg.elementSize("hint-scrollbar-size").width : scrollbarSvg.elementSize("arrow-up").width) * units.devicePixelRatio)
transientScrollBars: false transientScrollBars: Settings.hasTouchScreen && Settings.isMobile
function syncVelocity() { function syncVelocity() {
if (!control.flickableItem) { if (!control.flickableItem) {