123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- import QtQuick 2.0
- import "../QUItIndicators"
- Item {
- id: root
- property real tempValue: 0;
- property bool tempRunning: true;
- height: contentArea.height
- Grid {
- id: contentArea
- x: (root.width - width)/2
- y: 40
- columns: root.width < 448 ? 1 : root.width < 2*448 ? 3 : 6
- rowSpacing: 50
- BusyIndicator {
- size: "small"
- running: tempRunning
- Text {
- y: -30
- font.pixelSize: 16
- color: "#b0b0b0"
- styleColor: "#000000"
- style: Text.Raised
- text: "BusyIndicators"
- }
- }
- BusyIndicator {
- running: tempRunning
- }
- BusyIndicator {
- size: "large"
- running: tempRunning
- }
- ProgressIndicator {
- size: "small"
- value: tempValue
- running: tempRunning
- Text {
- y: -30
- font.pixelSize: 16
- color: "#b0b0b0"
- styleColor: "#000000"
- style: Text.Raised
- text: "ProgressIndicators"
- }
- }
- ProgressIndicator {
- value: tempValue
- running: tempRunning
- }
- ProgressIndicator {
- size: "large"
- value: tempValue
- running: tempRunning
- }
- BusyIndicator {
- size: "small"
- running: tempRunning
- invertedTheme: true
- Text {
- y: -30
- font.pixelSize: 16
- color: "#b0b0b0"
- styleColor: "#000000"
- style: Text.Raised
- text: "BusyIndicators - Inverted Theme"
- }
- }
- BusyIndicator {
- running: tempRunning
- invertedTheme: true
- }
- BusyIndicator {
- size: "large"
- running: tempRunning
- invertedTheme: true
- }
- ProgressIndicator {
- size: "small"
- value: tempValue
- running: tempRunning
- invertedTheme: true
- Text {
- y: -30
- font.pixelSize: 16
- color: "#b0b0b0"
- styleColor: "#000000"
- style: Text.Raised
- text: "ProgressIndicators - Inverted Theme"
- }
- }
- ProgressIndicator {
- value: tempValue
- running: tempRunning
- invertedTheme: true
- }
- ProgressIndicator {
- size: "large"
- value: tempValue
- running: tempRunning
- invertedTheme: true
- }
- }
- SequentialAnimation {
- running: true
- loops: Animation.Infinite
- NumberAnimation {
- target: root
- property: "tempValue"
- from: 0
- to: 1
- duration: 5000
- easing.type: Easing.InOutQuad
- }
- PropertyAction {
- target: root
- property: "tempRunning"
- value: false
- }
- PauseAnimation { duration: 480 }
- PropertyAction {
- target: root
- property: "tempValue"
- value: 0
- }
- PropertyAction {
- target: root
- property: "tempRunning"
- value: true
- }
- }
- }
|