Index: sources/gui/qml/components/GridSelection.qml =================================================================== diff -u -r2dd4e9c952d65e68f1c81a1cfc13d1f96b0d7d43 -rb34af342449705923783d041ec0fa468d1d30be2 --- sources/gui/qml/components/GridSelection.qml (.../GridSelection.qml) (revision 2dd4e9c952d65e68f1c81a1cfc13d1f96b0d7d43) +++ sources/gui/qml/components/GridSelection.qml (.../GridSelection.qml) (revision b34af342449705923783d041ec0fa468d1d30be2) @@ -49,6 +49,16 @@ signal clicked(int vIndex) + function clear() { + _root.curIndex = -1 + _root.active = false + } + + function reset(vIndex) { + _root.curIndex = vIndex + _root.active = true + } + Text { id : _title text : "" color : _root.valid ? Colors.textMain : Colors.createTreatmentInvalidParam @@ -72,10 +82,7 @@ height : _root.optionHeight width : _root.optionWidth radius : Variables.dialogRadius - Binding on selected { - when : _root.curIndex > -1 - value : index === _root.curIndex - } + selected : _root.curIndex > -1 ? index === _root.curIndex : false onClicked: { _root.curIndex = index _root.clicked ( index )