Warning, /plasma/qqc2-breeze-style/style/qtquickcontrols/ScrollView.qml is written in an unsupported language. File is not indexed.
0001 // NOTE: check this 0002 import QtQuick 0003 import QtQuick.Controls as Controls 0004 import QtQuick.Templates as T 0005 0006 import org.kde.kirigami as Kirigami 0007 0008 T.ScrollView { 0009 id: control 0010 0011 implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, 0012 contentWidth + leftPadding + rightPadding) 0013 implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, 0014 contentHeight + topPadding + bottomPadding) 0015 0016 data: [ 0017 Kirigami.WheelHandler { 0018 target: control.contentItem 0019 } 0020 ] 0021 0022 rightPadding: { 0023 if (ScrollBar.vertical?.background?.visible) { 0024 return ScrollBar.vertical.background.width 0025 } else { 0026 return horizontalPadding 0027 } 0028 } 0029 bottomPadding: { 0030 if (ScrollBar.horizontal?.background?.visible) { 0031 return ScrollBar.horizontal.background.height 0032 } else { 0033 return verticalPadding 0034 } 0035 } 0036 0037 ScrollBar.vertical: ScrollBar { 0038 parent: control 0039 x: control.mirrored ? 0 : control.width - width 0040 y: control.topPadding 0041 height: control.availableHeight 0042 active: control.ScrollBar.horizontal.active 0043 } 0044 0045 ScrollBar.horizontal: ScrollBar { 0046 parent: control 0047 x: control.leftPadding 0048 y: control.height - height 0049 width: control.availableWidth 0050 active: control.ScrollBar.vertical.active 0051 } 0052 }