Index: sources/gui/qml/pages/posttreatment/PostTreatmentReview.qml =================================================================== diff -u -rc9f8f8cf3c6c37fc6460d8675c62c9442c4d4263 -rd26aff743bca7eceb609ce5b30cea7cbfa39748f --- sources/gui/qml/pages/posttreatment/PostTreatmentReview.qml (.../PostTreatmentReview.qml) (revision c9f8f8cf3c6c37fc6460d8675c62c9442c4d4263) +++ sources/gui/qml/pages/posttreatment/PostTreatmentReview.qml (.../PostTreatmentReview.qml) (revision d26aff743bca7eceb609ce5b30cea7cbfa39748f) @@ -57,13 +57,34 @@ } 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 + anchors.bottom : _flickable.top + anchors.right : _flickable.right + anchors.margins : 15 + qrcode : vPostTreatmentAdjustmentTreatmentLog.txCode + clear : ! _root.visible + } + Flickable { id: _flickable clip: true anchors {