Warning, /frameworks/qqc2-desktop-style/org.kde.desktop/ProgressBar.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2017 Marco Martin <mart@kde.org> 0003 SPDX-FileCopyrightText: 2017 The Qt Company Ltd. 0004 SPDX-FileCopyrightText: 2023 ivan tkachenko <me@ratijas.tk> 0005 0006 SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-or-later 0007 */ 0008 0009 import QtQuick 0010 import org.kde.qqc2desktopstyle.private as StylePrivate 0011 import QtQuick.Templates as T 0012 import org.kde.kirigami as Kirigami 0013 0014 T.ProgressBar { 0015 id: controlRoot 0016 0017 implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, 0018 implicitContentWidth + leftPadding + rightPadding, 0019 250) 0020 implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, 0021 implicitContentHeight + topPadding + bottomPadding) 0022 0023 topInset: Kirigami.Units.largeSpacing 0024 bottomInset: Kirigami.Units.largeSpacing 0025 0026 hoverEnabled: false 0027 0028 contentItem: Item {} 0029 0030 background: StylePrivate.StyleItem { 0031 elementType: "progressbar" 0032 control: controlRoot 0033 minimum: 0 0034 maximum: controlRoot.indeterminate ? 0 : 100000 0035 value: controlRoot.indeterminate ? 0 : 100000 * controlRoot.position 0036 horizontal: true 0037 enabled: controlRoot.enabled 0038 } 0039 }