Index: sources/gui/qml/pages/postTreatment/PostTreatmentRinsebackStack.qml =================================================================== diff -u -rd6dc1cd63d86d7d4f4c4d05958bec4f870783f41 -rc15ce613e372838316d42c40a86953e6f0aa05d3 --- sources/gui/qml/pages/postTreatment/PostTreatmentRinsebackStack.qml (.../PostTreatmentRinsebackStack.qml) (revision d6dc1cd63d86d7d4f4c4d05958bec4f870783f41) +++ sources/gui/qml/pages/postTreatment/PostTreatmentRinsebackStack.qml (.../PostTreatmentRinsebackStack.qml) (revision c15ce613e372838316d42c40a86953e6f0aa05d3) @@ -70,3 +70,31 @@ } } } + +/* TODO: + // an idea that is being worked on for later performance imporovement + // if the stackview becomes slow this idea is a manual transition with animation to be replacecd with stackView + PropertyAnimation { id: _rbInitAnimation + target: _postTreatmentRinsebackInit + property: "opacity" + duration: 1000 + to: vHDTreatmentStates.rbInit ? 1 : 0 + } + PropertyAnimation { id: _rbStopAnimation + target: _postTreatmentRinsebackComplete + property: "opacity" + duration: 1000 + to: vHDTreatmentStates.rbStop ? 1 : 0 + } + Connections { target: vHDTreatmentStates + onStateTriggered : { // this property is a TRIGGER and shall be set at the end of the property setters functions list + _postTreatmentRinsebackInit .visible = vHDTreatmentStates.rbInit + _postTreatmentRinseback .visible = vHDTreatmentStates.rbRun || vHDTreatmentStates.rbPaused + _postTreatmentRinsebackComplete .visible = vHDTreatmentStates.rbStop + _postTreatmentAdditional .visible = vHDTreatmentStates.rbAdditional + + } + onRbInitChanged: _rbInitAnimation.running = true + onRbStopChanged: _rbStopAnimation.running = true + } +*/