Index: sources/gui/qml/pages/posttreatment/PostTreatmentStack.qml =================================================================== diff -u -r20765b9c0e05cd7c3b0a3320606eecc1d4fdfc91 -rf835b04c0a82a4ebf58f94b817f7961b2e824c35 --- sources/gui/qml/pages/posttreatment/PostTreatmentStack.qml (.../PostTreatmentStack.qml) (revision 20765b9c0e05cd7c3b0a3320606eecc1d4fdfc91) +++ sources/gui/qml/pages/posttreatment/PostTreatmentStack.qml (.../PostTreatmentStack.qml) (revision f835b04c0a82a4ebf58f94b817f7961b2e824c35) @@ -74,7 +74,7 @@ setPage( _postTreatmentDisinfection ) break case PostTreatmentStack.Disinfection: - // Skip button - go back to standby -- Finish Treatment + vDisinfectAdjustDisinfect.doSkip() break default: break @@ -176,10 +176,10 @@ // connections Connections { target: vPostTreatmentStates - function onDrainReservoirsChanged ( vValue ) { console.debug("drainReservoirs ", vValue )} - function onPatientDisconnectionChanged ( vValue ) { console.debug("patientDisconnection", vValue )} - function onDisposableRemovalChanged ( vValue ) { console.debug("disposableRemoval ", vValue )} - function onVerifyChanged ( vValue ) { console.debug("verify ", vValue )} + function onPatientDisconnectionChanged ( vValue ) { console.debug("patientDisconnection ", vValue )} + function onAutoEjectChanged ( vValue ) { console.debug("autoEject ", vValue )} + function onDisposableRemovalChanged ( vValue ) { console.debug("disposableRemoval ", vValue )} + function onDisinfectionChanged ( vValue ) { console.debug("disinfection ", vValue )} } Connections { target: vTDOpMode @@ -214,4 +214,15 @@ } } } + + // Disinfect + Connections { target: vDisinfectAdjustDisinfect + function onAdjustmentTriggered ( vValue ) { + if ( vDisinfectAdjustDisinfect.adjustment_Accepted ) { + _postTreatmentDisinfection.reasonText = "" + } else { + _postTreatmentDisinfection.reasonText = vDisinfectAdjustDisinfect.text() + } + } + } }