Index: sources/gui/qml/components/TextEntry.qml =================================================================== diff -u -rb5ae1508b6ca751c29ed1844cd844eeec67cff82 -r5687815256ae070a9a207107088e3f72dd464da0 --- sources/gui/qml/components/TextEntry.qml (.../TextEntry.qml) (revision b5ae1508b6ca751c29ed1844cd844eeec67cff82) +++ sources/gui/qml/components/TextEntry.qml (.../TextEntry.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 TextEntry.qml * \author (last) Behrouz NematiPour - * \date (last) 14-Apr-2023 + * \date (last) 16-Jul-2024 * \author (original) Behrouz NematiPour * \date (original) 16-Apr-2021 * @@ -35,6 +35,7 @@ property var nextInput : undefined property alias text : _input.text property bool hasCursor : true + property alias lengthMax : _input.maximumLength readonly property alias isValid : _input.acceptableInput @@ -54,7 +55,7 @@ function doFocus( vFocus ) { if ( vFocus ) { - // if has cursor (is enditable), by clicking on the entry the keyboard shall pop up + // if has cursor (is editable), by clicking on the entry the keyboard shall pop up // since the MouseArea is covering the entry, user can't move the cursur to delete one specific character, // all will be selected to overwrite the entire text for easy modification. // it was better if the keyboard has the cursor arrows @@ -114,7 +115,7 @@ MouseArea { // if it has cursor since it is possible to have only one entry. - // then just click on the entry will not do anything and we nned a mouse area to display the keyboard + // then just click on the entry will not do anything and we need a mouse area to display the keyboard // if in any case the keyboard becomes hidden to make the rest of the screen visible. visible : hasCursor anchors.fill: parent