Index: sources/gui/qml/pages/UserConfirmation.qml =================================================================== diff -u -rc73feffa73c7fe073a7a7581144f5806dfc91beb -r5687815256ae070a9a207107088e3f72dd464da0 --- sources/gui/qml/pages/UserConfirmation.qml (.../UserConfirmation.qml) (revision c73feffa73c7fe073a7a7581144f5806dfc91beb) +++ sources/gui/qml/pages/UserConfirmation.qml (.../UserConfirmation.qml) (revision 5687815256ae070a9a207107088e3f72dd464da0) @@ -1,13 +1,13 @@ /*! * - * Copyright (c) 2021-2023 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 UserConfirmation.qml * \author (last) Behrouz NematiPour - * \date (last) 03-Apr-2023 + * \date (last) 16-Jul-2024 * \author (original) Behrouz NematiPour * \date (original) 11-May-2021 * @@ -34,6 +34,7 @@ readonly property string passwordCurrent : _passwordCurrent.textInput.text readonly property string passwordUpdated : _passwordUpdated.textInput.text readonly property string passwordConfirm : _passwordConfirm.textInput.text + property int passwordLengthMax : 30 property alias message : _message.text function clearPasswordCurrnet() { _passwordCurrent.textInput.text = "" } @@ -59,6 +60,7 @@ PasswordEntry { id: _passwordCurrent label.text : ! passwordChangeMode ? "" : qsTr("Current") label.width : ! passwordChangeMode ? 0 : labelWidth + lengthMax : passwordLengthMax nextInput : _passwordUpdated anchors { top : parent.top @@ -71,6 +73,7 @@ visible : passwordChangeMode label.text : qsTr("New") nextInput : _passwordConfirm + lengthMax : passwordLengthMax anchors { top : _passwordCurrent.bottom horizontalCenter : parent.horizontalCenter @@ -80,6 +83,7 @@ PasswordEntry { id: _passwordConfirm visible : passwordChangeMode label.text : qsTr("Confirm") + lengthMax : passwordLengthMax anchors { top : _passwordUpdated.bottom horizontalCenter : parent.horizontalCenter @@ -91,6 +95,7 @@ property alias nextInput : _passwordEntry.nextInput property alias label : _passwordEntry.label property int labelWidth : 150 + property alias lengthMax : _passwordEntry.lengthMax height : 70 label.width : labelWidth