Warning, /plasma/plasma-firewall/kcm/ui/InlineBusyIndicator.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0002 // SPDX-FileCopyrightText: 2020 Kai Uwe Broulik <kde@broulik.de> 0003 0004 import QtQuick 2.12 0005 import QtQuick.Controls 2.9 as QQC2 0006 0007 import org.kde.kirigami 2.10 as Kirigami 0008 0009 Item { 0010 id: container 0011 0012 property alias running: busyIndicator.running 0013 property int horizontalAlignment: Qt.AlignLeft 0014 0015 implicitWidth: busyIndicator.implicitWidth 0016 // Not hiding the container so the layout doesn't shift as it comes and goes 0017 0018 QQC2.BusyIndicator { 0019 id: busyIndicator 0020 anchors { 0021 left: container.horizontalAlignment === Qt.AlignLeft ? parent.left : undefined 0022 horizontalCenter: container.horizontalAlignment === Qt.AlignHCenter ? parent.horizontalCenter : undefined 0023 right: container.horizontalAlignment === Qt.AlignRight ? parent.right : undefined 0024 verticalCenter: parent.verticalCenter 0025 } 0026 width: height 0027 height: Kirigami.Units.iconSizes.medium 0028 running: false 0029 visible: running 0030 } 0031 }