Index: sources/gui/qml/compounds/TouchGrid.qml =================================================================== diff -u -r90d21320e3fafd64ee2e9241ce4065aca86625ff -r26433c42f2efa2cb18af95f523581c7eeeff049d --- sources/gui/qml/compounds/TouchGrid.qml (.../TouchGrid.qml) (revision 90d21320e3fafd64ee2e9241ce4065aca86625ff) +++ sources/gui/qml/compounds/TouchGrid.qml (.../TouchGrid.qml) (revision 26433c42f2efa2cb18af95f523581c7eeeff049d) @@ -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 TouchGrid.qml - * \author (last) Behrouz NematiPour - * \date (last) 27-Jun-2022 + * \author (last) Dara Navaei + * \date (last) 06-Mar-2024 * \author (original) Behrouz NematiPour * \date (original) 14-Apr-2021 * @@ -34,6 +34,7 @@ property var itemsVisible : [] property var itemsHasImage : [] property var itemsHasLine : [] + property var itemsHasIndent : [] property var itemsTouchable : [] property bool touchable : true @@ -89,14 +90,15 @@ columns : _root.colCount rows : _root.rowCount rowSpacing : 25 - columnSpacing : itemsVisibleCount > rowCount ? 100 : 0 + columnSpacing : itemsVisibleCount > rowCount ? 50 : 0 Repeater { model : _root.itemsText TouchRect { id: _touchItem + readonly property int indentMargin : (undef( _root.itemsHasIndent[index], false ) ? 20 : 0) clip : true touchable : undef( _root.itemsTouchable[index], _root.touchable ) text.anchors.horizontalCenter: undefined - text.leftPadding : Variables.minVGap + text.leftPadding : Variables.minVGap + indentMargin text.text : modelData border.width : 0 height : _root.itemHeight