aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/BusyIndicator.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-30 11:36:14 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-11-02 09:29:48 +0000
commit304cf22b96092df1953faf584c2822e958ca40c1 (patch)
treeb80418c8e4951b7c812c9d0a66cadbebb1085834 /src/imports/controls/BusyIndicator.qml
parenta4337a3bc7cc97fc9d707611dda99d512ef83ac0 (diff)
Remove BusyIndicator::indicator
The indicator -property became redundant when contentItem was promoted to the Control base type. The content item is automatically resized to the available size, so it's even more convenient to use. Change-Id: I92435e1105171e45838ef1f49f653ad0f8d3152a Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/BusyIndicator.qml')
-rw-r--r--src/imports/controls/BusyIndicator.qml14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/imports/controls/BusyIndicator.qml b/src/imports/controls/BusyIndicator.qml
index 60c8df54..3e7191c2 100644
--- a/src/imports/controls/BusyIndicator.qml
+++ b/src/imports/controls/BusyIndicator.qml
@@ -41,20 +41,16 @@ import Qt.labs.templates 1.0 as T
T.BusyIndicator {
id: control
- implicitWidth: indicator.implicitWidth + leftPadding + rightPadding
- implicitHeight: indicator.implicitHeight + topPadding + bottomPadding
+ implicitWidth: contentItem.implicitWidth + leftPadding + rightPadding
+ implicitHeight: contentItem.implicitHeight + topPadding + bottomPadding
padding: 6
- //! [indicator]
- indicator: Item {
+ //! [contentItem]
+ contentItem: Item {
id: delegate
implicitWidth: 48
implicitHeight: 48
- x: control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- width: control.availableWidth
- height: control.availableHeight
opacity: control.running ? 1 : 0
Behavior on opacity { OpacityAnimator { duration: 250 } }
@@ -77,5 +73,5 @@ T.BusyIndicator {
}
}
}
- //! [indicator]
+ //! [contentItem]
}