Index: sources/gui/qml/pages/posttreatment/PostTreatmentReview.qml =================================================================== diff -u -rc9f8f8cf3c6c37fc6460d8675c62c9442c4d4263 -r44c45c64baa4ddcd94b0fda9ec5d735bb087caa9 --- sources/gui/qml/pages/posttreatment/PostTreatmentReview.qml (.../PostTreatmentReview.qml) (revision c9f8f8cf3c6c37fc6460d8675c62c9442c4d4263) +++ sources/gui/qml/pages/posttreatment/PostTreatmentReview.qml (.../PostTreatmentReview.qml) (revision 44c45c64baa4ddcd94b0fda9ec5d735bb087caa9) @@ -57,13 +57,35 @@ } Label { id: _txCode + property string empty : "..." + property string txCode : vPostTreatmentAdjustmentTreatmentLog.txCode + Timer { id: _waitTxCodeTimer + property int count: 0 + interval: 1000 + repeat : true + running : _txCode.visible && ! _txCode.txCode + onTriggered: { + _txCode.empty = ".".repeat( count ++ ) + if ( count == 4 ) count = 0 + } + } + anchors.bottom : _flickable.top anchors.left : _flickable.left width : _flickable.width - text : qsTr("Code: ") + vPostTreatmentAdjustmentTreatmentLog.txCode + text : qsTr("Code: ") + ( txCode ? txCode : empty ) font.pixelSize : Fonts.fontPixelButton } + QRCode { id: _qrCode + visible : false // removed for the P1 release, since the code had a big change and cannot be removed entirely + anchors.bottom : _flickable.top + anchors.right : _flickable.right + anchors.margins : 15 + qrcode : vPostTreatmentAdjustmentTreatmentLog.txCode + clear : ! _root.visible + } + Flickable { id: _flickable clip: true anchors {