Index: sources/gui/qml/pages/posttreatment/PostTreatmentReview.qml =================================================================== diff -u -r27cc308ff5113a9386899d3c8f8b29962a8498e1 -rfd1b031dd0c66addaa751f5d69dfef46bdfc6b7a --- sources/gui/qml/pages/posttreatment/PostTreatmentReview.qml (.../PostTreatmentReview.qml) (revision 27cc308ff5113a9386899d3c8f8b29962a8498e1) +++ sources/gui/qml/pages/posttreatment/PostTreatmentReview.qml (.../PostTreatmentReview.qml) (revision fd1b031dd0c66addaa751f5d69dfef46bdfc6b7a) @@ -63,10 +63,16 @@ contentHeight: _parametersGrid.height TouchGrid { id: _parametersGrid - height : rowCount * ( rowSpacing + itemHeight ) + itemHeight + // TODO: fixed only for this list since it has been used other places. + // investigate more to move these readonly properties in the TouchGrid component. + readonly property int _itemCount: vPostTreatmentAdjustmentTreatmentLog.parametersTitle.length + readonly property int _colCount : 2 + readonly property int _rowCount : Math.ceil( _itemCount / _colCount ) + + height : _rowCount * ( rowSpacing + itemHeight ) + itemHeight width : parent.width - colCount : 2 - rowCount : 17 + colCount : _colCount + rowCount : _rowCount itemWidth : 575 rowSpacing : 0 colSpacing : 50 @@ -76,12 +82,17 @@ itemsUnit : vPostTreatmentAdjustmentTreatmentLog.parametersUnit itemsValueLeftMargin : 350 // if decreased may be covered by title itemsUnitLeftMargin : 470 // if increased will be covered by chevron if touchable - itemsTouchable : [ - 0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0, - ] + // Note: to make the item touchable + // set the touchable: true + // and set the index ot the touchable item in the itemsTouchable: [] list to 1 + // like displayed below. + touchable : false + // itemsTouchable : [ + // 0,0,0,0,0,0,0,0,0,0, + // 0,0,0,0,0,0,0,0,0,0, + // 0,0,0,0,0,0,0,0,0,0, + // 0,0,0,0,0,0,0,0,0,0, + // ] onItemClicked: _root.itemClicked(vIndex) } }