Commit ff9c0ce6 authored by Frederik Gladhorn's avatar Frederik Gladhorn Committed by The Qt Project
Browse files

Doc for ProgressBar and remove its MouseArea


There is no reason for a MouseArea in ProgressBar,
it's not interactive.

MinumumWidth and maximumWidth were unused.

Change-Id: Id911609dba71f81e076297eacc0f3971e1d46498
Reviewed-by: default avatarGabriel de Dietrich <gabriel.dedietrich@digia.com>
parent 35f06168
No related merge requests found
Showing with 18 additions and 11 deletions
...@@ -45,23 +45,36 @@ import "Styles/Settings.js" as Settings ...@@ -45,23 +45,36 @@ import "Styles/Settings.js" as Settings
/*! /*!
\qmltype ProgressBar \qmltype ProgressBar
\inqmlmodule QtDesktop 1.0 \inqmlmodule QtDesktop 1.0
\brief ProgressBar is doing bla...bla... \brief A progress bar
The ProgressBar is used to give an indication of the progress of an operation.
\l value is updated regularly and must be between \l minimumValue and \l maximumValue.
*/ */
Item { Item {
id: progressbar id: progressbar
/*! This property is
*/
property real value: 0 property real value: 0
/*! This property is the progress bar's minimum value */
property real minimumValue: 0 property real minimumValue: 0
/*! This property is the progress bar's maximum value */
property real maximumValue: 1 property real maximumValue: 1
/*! This property toggles indeterminate mode.
When the actual progress is unknown, use this option.
The progress bar will be animated as busy indicator instead.
*/
property bool indeterminate: false property bool indeterminate: false
property bool containsMouse: mouseArea.containsMouse
property int minimumWidth: 0
property int minimumHeight: 0
/*! This property holds the orientation of the progress bar.
It must be either Qt.Horizontal or Qt.Vertical.
*/
property int orientation: Qt.Horizontal property int orientation: Qt.Horizontal
/*! \internal */
property Component style: Qt.createComponent(Settings.THEME_PATH + "/ProgressBarStyle.qml", progressbar) property Component style: Qt.createComponent(Settings.THEME_PATH + "/ProgressBarStyle.qml", progressbar)
/*! \internal */
property var styleHints:[] property var styleHints:[]
Accessible.role: Accessible.ProgressBar Accessible.role: Accessible.ProgressBar
...@@ -81,11 +94,5 @@ Item { ...@@ -81,11 +94,5 @@ Item {
sourceComponent: style sourceComponent: style
anchors.fill: parent anchors.fill: parent
} }
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
}
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment