Warning, /plasma/qqc2-breeze-style/style/qtquickcontrols/ScrollIndicator.qml is written in an unsupported language. File is not indexed.

0001 /* SPDX-FileCopyrightText: 2020 Noah Davis <noahadvs@gmail.com>
0002  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0003  */
0004 
0005 import QtQuick
0006 import QtQuick.Templates as T
0007 import org.kde.kirigami as Kirigami
0008 
0009 import org.kde.breeze.impl as Impl
0010 
0011 T.ScrollIndicator {
0012     id: control
0013 
0014     // content may be loaded after this component, ensure it always stays above content
0015     // inline with qqc2-desktop-style behaviour
0016     z: 9999
0017 
0018     implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
0019                             implicitContentWidth + leftPadding + rightPadding)
0020     implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
0021                              implicitContentHeight + topPadding + bottomPadding)
0022 
0023     visible: control.size < 1
0024 
0025     minimumSize: horizontal ? height / width : width / height
0026 
0027     padding: Impl.Units.verySmallSpacing
0028 
0029     contentItem: Impl.ScrollHandle {
0030         control: control
0031     }
0032 }