aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/BusyIndicator.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-12-19 16:05:52 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2017-12-20 17:37:41 +0000
commitda27cace5aa65c1972b746d9fc1d4507a04b5f93 (patch)
treef1ffa6a9c7728348d26be8a6c79a1e6c95faa662 /src/imports/controls/BusyIndicator.qml
parentb94cb52c8b03511a2549469dfed33c6e0e857021 (diff)
Default: cleanup the internal ID from BusyIndicator
An internal ID in the OpacityAnimator element prevented deferred execution for the whole content item. Apply the same visibility trick in C++ to avoid having to use an ID in QML. Task-number: QTBUG-65341 Change-Id: Icb20e4ecc60d1093e849737799bb269f7f03097a Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/BusyIndicator.qml')
-rw-r--r--src/imports/controls/BusyIndicator.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/BusyIndicator.qml b/src/imports/controls/BusyIndicator.qml
index 234c2e01..c92ef720 100644
--- a/src/imports/controls/BusyIndicator.qml
+++ b/src/imports/controls/BusyIndicator.qml
@@ -51,8 +51,8 @@ T.BusyIndicator {
implicitWidth: 48
implicitHeight: 48
+ running: control.running
opacity: control.running ? 1 : 0
- visible: control.running || animator.running
- Behavior on opacity { OpacityAnimator { id: animator; duration: 250 } }
+ Behavior on opacity { OpacityAnimator { duration: 250 } }
}
}