Warning, /plasma/libplasma/examples/applets/widgetgallery/contents/ui/Busy.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2011 Daker Fernandes Pinheiro <dakerfp@gmail.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 import QtQuick
0008 import org.kde.plasma.components as PlasmaComponents
0009 
0010 PlasmaComponents.Page {
0011     height: childrenRect.height
0012     property int implicitHeight: childrenRect.height
0013 
0014     tools: PlasmaComponents.ToolBarLayout {
0015         spacing: 5
0016         PlasmaComponents.ToolButton {
0017             visible: pageStack.depth > 1
0018             iconSource: "go-previous"
0019             onClicked: pageStack.pop()
0020         }
0021         PlasmaComponents.ProgressBar {
0022             value: 0.3
0023         }
0024         PlasmaComponents.TextField {
0025             clearButtonShown: true
0026             text: "Busy widgets"
0027         }
0028     }
0029 
0030     Flickable {
0031         id: flickable
0032         contentWidth: column.width
0033         contentHeight: column.height
0034         clip: true
0035         anchors.fill: parent
0036 
0037         Item {
0038             width: Math.max(flickable.width, column.width)
0039             height: column.height
0040             Column {
0041                 id: column
0042                 spacing: 20
0043                 anchors.horizontalCenter: parent.horizontalCenter
0044 
0045                 PlasmaComponents.Label {
0046                     font.pixelSize: 20
0047                     text: "Busy Indicator"
0048                 }
0049 
0050                 PlasmaComponents.BusyIndicator { }
0051 
0052                 PlasmaComponents.BusyIndicator { running: true }
0053 
0054                 PlasmaComponents.Label {
0055                     font.pixelSize: 20
0056                     text: "Progress Bar"
0057                 }
0058 
0059                 PlasmaComponents.Label { text: "Horizontal" }
0060 
0061                 PlasmaComponents.ProgressBar {
0062                     value: 0.3
0063                 }
0064 
0065                 PlasmaComponents.ProgressBar {
0066                     indeterminate: true
0067                 }
0068 
0069                 PlasmaComponents.ProgressBar {
0070                     minimumValue: 0
0071                     maximumValue: 100
0072                     value: 30
0073                 }
0074 
0075                 PlasmaComponents.Label { text: "Vertical" }
0076                 Row {
0077                     spacing: 20
0078                     PlasmaComponents.ProgressBar {
0079                         value: 0.3
0080                         orientation: Qt.Vertical
0081                         width: 20
0082                         height: 100
0083                     }
0084                     PlasmaComponents.ProgressBar {
0085                         value: 0.4
0086                         orientation: Qt.Vertical
0087                         width: 20
0088                         height: 120
0089                     }
0090                     PlasmaComponents.ProgressBar {
0091                         orientation: Qt.Vertical
0092                         width: 20
0093                         height: 100
0094                         indeterminate: true
0095                     }
0096                 }
0097             }
0098         }
0099     }
0100 
0101     PlasmaComponents.ScrollBar {
0102         id: horizontalScrollBar
0103 
0104         flickableItem: flickable
0105         orientation: Qt.Horizontal
0106         anchors {
0107             left: parent.left
0108             right: verticalScrollBar.left
0109             bottom: parent.bottom
0110         }
0111     }
0112 
0113     PlasmaComponents.ScrollBar {
0114         id: verticalScrollBar
0115 
0116         orientation: Qt.Vertical
0117         flickableItem: flickable
0118         anchors {
0119             top: parent.top
0120             right: parent.right
0121             bottom: horizontalScrollBar.top
0122         }
0123     }
0124 }