PlasmaComponents
Go to the documentation of this file.
22 import org.kde.plasma.core 0.1 as PlasmaCore
25 PlasmaCore.FrameSvgItem {
28 imagePath:
"widgets/scrollbar"
29 prefix: internalLoader.isVertical ?
"background-vertical" :
"background-horizontal"
31 property int implicitWidth: scrollbarSvg.hasElement(
"hint-scrollbar-size") ? scrollbarSvg.elementSize(
"hint-scrollbar-size").width : 12
32 property int implicitHeight: scrollbarSvg.hasElement(
"hint-scrollbar-size") ? scrollbarSvg.elementSize(
"hint-scrollbar-size").height : 12
38 easing.type: Easing.OutQuad
44 imagePath:
"widgets/scrollbar"
47 property Item handle: handle
49 property Item contents: contents
54 PlasmaCore.FrameSvgItem {
56 imagePath:
"widgets/scrollbar"
63 if (internalLoader.isVertical) {
64 nh = flickableItem.visibleArea.heightRatio * internalLoader.height
66 nh = flickableItem.visibleArea.widthRatio * internalLoader.width
69 if (internalLoader.isVertical) {
70 ny = flickableItem.visibleArea.yPosition * internalLoader.height
72 ny = flickableItem.visibleArea.xPosition * internalLoader.width
78 if (internalLoader.isVertical) {
79 t = Math.ceil(internalLoader.height - 3 - ny)
81 t = Math.ceil(internalLoader.width - 3 - ny)
94 width: internalLoader.isVertical ? parent.width : length()
95 height: internalLoader.isVertical ? length() : parent.height
99 property MouseArea mouseArea: null
102 target: flickableItem
104 if (flickableItem.moving) {
105 opacityTimer.running =
false
106 background.opacity = 1
108 opacityTimer.restart()
118 background.opacity = 0
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:08:40 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.