10import QtQuick.Templates as T
13import org.kde.kirigami as Kirigami
14import org.kde.plasma.components as PlasmaComponents3
21 implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
22 contentWidth + leftPadding + rightPadding)
23 implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
24 contentHeight + topPadding + bottomPadding)
26 leftPadding: mirrored && T.ScrollBar.vertical.visible && !Kirigami.Settings.isMobile ? T.ScrollBar.vertical.width : 0
27 rightPadding: !mirrored && T.ScrollBar.vertical.visible && !Kirigami.Settings.isMobile ? T.ScrollBar.vertical.width : 0
28 bottomPadding: T.ScrollBar.horizontal.visible && !Kirigami.Settings.isMobile ? T.ScrollBar.horizontal.height : 0
31 Kirigami.WheelHandler {
32 target: controlRoot.contentItem
34 horizontalStepSize: Qt.styleHints.wheelScrollLines * 20
35 verticalStepSize: Qt.styleHints.wheelScrollLines * 20
38 target: controlRoot.contentItem
41 restoreMode: Binding.RestoreBindingOrValue
45 T.ScrollBar.vertical: PlasmaComponents3.ScrollBar {
47 x: controlRoot.mirrored ? 0 : controlRoot.width - width
48 y: controlRoot.topPadding
49 height: controlRoot.availableHeight
50 active: controlRoot.T.ScrollBar.horizontal.active
53 T.ScrollBar.horizontal: PlasmaComponents3.ScrollBar {
55 x: controlRoot.leftPadding
56 y: controlRoot.height - height
57 width: controlRoot.availableWidth
58 active: controlRoot.T.ScrollBar.vertical.active
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:35 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.