Warning, /plasma/libplasma/tests/components/busyindicator3.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2019 David Edmundson <kde@davidedmundson.co.uk> 0003 * SPDX-FileCopyrightText: 2020 Noah Davis <noahadvs@gmail.com> 0004 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 import QtQuick 0007 import QtQuick.Layouts 0008 import org.kde.plasma.components as PlasmaComponents 0009 import org.kde.kirigami as Kirigami 0010 0011 ComponentBase { 0012 id: root 0013 title: "Plasma Components 3 BusyIndicator" 0014 contentItem: ColumnLayout { 0015 spacing: Kirigami.Units.gridUnit 0016 0017 PlasmaComponents.Label { 0018 wrapMode: Text.WordWrap 0019 text: "The BusyIndicator should have a height of 16px and should have a 1:1 aspect ratio" 0020 Layout.preferredWidth: Math.max(busyIndicatorLayout.width, root.implicitHeaderWidth) 0021 } 0022 PlasmaComponents.BusyIndicator { 0023 Layout.preferredHeight: 16 0024 } 0025 0026 PlasmaComponents.Label { 0027 wrapMode: Text.WordWrap 0028 text: "The BusyIndicator should use its implicit size." 0029 Layout.preferredWidth: Math.max(busyIndicatorLayout.width, root.implicitHeaderWidth) 0030 } 0031 PlasmaComponents.BusyIndicator {} 0032 0033 PlasmaComponents.Label { 0034 wrapMode: Text.WordWrap 0035 text: "The BusyIndicator should maintain a 1:1 aspect ratio, disappear when unchecked and restart when checked." 0036 Layout.preferredWidth: Math.max(busyIndicatorLayout.width, root.implicitHeaderWidth) 0037 } 0038 0039 RowLayout { 0040 id: busyIndicatorLayout 0041 spacing: Kirigami.Units.gridUnit 0042 0043 PlasmaComponents.BusyIndicator { 0044 Layout.fillWidth: true 0045 Layout.fillHeight: true 0046 running: runningButton.checked 0047 } 0048 0049 PlasmaComponents.CheckBox { 0050 id: runningButton 0051 text: "Running" 0052 checked: true 0053 } 0054 } 0055 } 0056 }