Debian Codegraph @

src/imports/Components/1.0/ProgressBar.qml

raw
1 /*
2 * Copyright 2013 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 import "../1.2" as Internals
19
20 /*!
21 \qmltype ProgressBar
22 \inqmlmodule Lomiri.Components
23 \ingroup lomiri
24 \brief The ProgressBar component visually indicates the progress of a process of
25 determinate or indeterminate duration.
26
27 Example:
28 \qml
29 Item {
30 ProgressBar {
31 id: indeterminateBar
32 indeterminate: true
33 }
34
35 ProgressBar {
36 id: determinateBar
37 minimumValue: -3.0
38 maximumValue: 15
39 }
40 }
41 \endqml
42 */
43 Internals.AnimatedItem {
44 id: progressBar
45
46 /*!
47 Specifies whether the progress interval is unknown. When set, altering
48 other properties do not have any effect on the component's behavior.
49 By default the property is set to false.
50 */
51 property bool indeterminate: false
52
53 /*!
54 Specifies the minimum value of the progress.
55 */
56 property real minimumValue: 0.0
57
58 /*!
59 Specifies the maximum value of the progress.
60 */
61 property real maximumValue: 1.0
62
63 /*!
64 Specifies the current value of the progress
65 */
66 property real value: 0.5
67
68 style: Theme.createStyleComponent("ProgressBarStyle.qml", progressBar)
69 }