| 1 |
/* |
| 2 |
* Copyright 2015-2016 Canonical Ltd. |
| 3 |
* |
| 4 |
* This program is free software; you can redistribute it and/or modify |
| 5 |
* it under the terms of the GNU Lesser General Public License as published by |
| 6 |
* the Free Software Foundation; version 3. |
| 7 |
* |
| 8 |
* This program is distributed in the hope that it will be useful, |
| 9 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 |
* GNU Lesser General Public License for more details. |
| 12 |
* |
| 13 |
* You should have received a copy of the GNU Lesser General Public License |
| 14 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 |
*/ |
| 16 |
|
| 17 |
import QtQuick 2.4 |
| 18 |
|
| 19 |
/*! |
| 20 |
\qmltype ProgressBar |
| 21 |
\inqmlmodule Lomiri.Components |
| 22 |
\ingroup lomiri |
| 23 |
\brief The ProgressBar component visually indicates the progress of a process of |
| 24 |
determinate or indeterminate duration. |
| 25 |
|
| 26 |
Example: |
| 27 |
\qml |
| 28 |
Item { |
| 29 |
ProgressBar { |
| 30 |
id: indeterminateBar |
| 31 |
indeterminate: true |
| 32 |
} |
| 33 |
|
| 34 |
ProgressBar { |
| 35 |
id: determinateBar |
| 36 |
minimumValue: -3.0 |
| 37 |
maximumValue: 15 |
| 38 |
} |
| 39 |
} |
| 40 |
\endqml |
| 41 |
*/ |
| 42 |
AnimatedItem { |
| 43 |
id: progressBar |
| 44 |
|
| 45 |
/*! |
| 46 |
Specifies whether the progress interval is unknown. When set, altering |
| 47 |
other properties do not have any effect on the component's behavior. |
| 48 |
By default the property is set to false. |
| 49 |
*/ |
| 50 |
property bool indeterminate: false |
| 51 |
|
| 52 |
/*! |
| 53 |
Specifies the minimum value of the progress. |
| 54 |
*/ |
| 55 |
property real minimumValue: 0.0 |
| 56 |
|
| 57 |
/*! |
| 58 |
Specifies the maximum value of the progress. |
| 59 |
*/ |
| 60 |
property real maximumValue: 1.0 |
| 61 |
|
| 62 |
/*! |
| 63 |
Specifies the current value of the progress |
| 64 |
*/ |
| 65 |
property real value: 0.5 |
| 66 |
|
| 67 |
/*! |
| 68 |
\since Lomiri.Components 1.1 |
| 69 |
\deprecated |
| 70 |
Specifies if the value of the progress is visible. The current visuals in |
| 71 |
Lomiri Components 1.3 do not support this feature. |
| 72 |
*/ |
| 73 |
property bool showProgressPercentage: true |
| 74 |
|
| 75 |
styleName: "ProgressBarStyle" |
| 76 |
} |