Index: sources/gui/qml/components/WaitDone.qml =================================================================== diff -u -r22bd5aba8d60c1cfda0e0b3bdcb0f54cdc27dafb -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 --- sources/gui/qml/components/WaitDone.qml (.../WaitDone.qml) (revision 22bd5aba8d60c1cfda0e0b3bdcb0f54cdc27dafb) +++ sources/gui/qml/components/WaitDone.qml (.../WaitDone.qml) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) @@ -1,15 +1,15 @@ /*! * - * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. + * Copyright (c) 2021-2024 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file WaitDone.qml * \author (last) Behrouz NematiPour - * \date (last) 11-Mar-2021 + * \date (last) 30-Aug-2022 * \author (original) Behrouz NematiPour - * \date (original) 11-Mar-2021 + * \date (original) 12-Mar-2021 * */ @@ -26,6 +26,8 @@ Item { id: _root property int diameter: 50 property bool done : false + property bool fail : false + property bool pause : false Image { id: _busyIndicator visible : true @@ -36,25 +38,21 @@ source : "qrc:/images/iBusy" RotationAnimator on rotation { - running : ! _root.done + running : ! _root.done && ! _root.pause from : 0 to : 360 loops : Animation.Infinite duration: 7200 } Behavior on opacity { OpacityAnimator { duration: 1200 } } - MouseArea { id: _mousearea - anchors.fill: parent - onClicked: done = true - } } Image { id: _checkIndicator anchors.centerIn: _root opacity : _root.done ? 1 : 0 width : _root.diameter + 15 height : _root.diameter + 15 - source : "qrc:/images/iBusyDone" + source : fail ? "qrc:/images/iBusyFail" : "qrc:/images/iBusyDone" Behavior on opacity { OpacityAnimator { duration: 1200 } } } }