Index: sources/gui/qml/components/MainMenu.qml =================================================================== diff -u -r506a9e3db1a20bda1685e38c5e9041005c9a4a4f -re28183bddebf7383c1bd113e7b8ef4ea11f494fb --- sources/gui/qml/components/MainMenu.qml (.../MainMenu.qml) (revision 506a9e3db1a20bda1685e38c5e9041005c9a4a4f) +++ sources/gui/qml/components/MainMenu.qml (.../MainMenu.qml) (revision e28183bddebf7383c1bd113e7b8ef4ea11f494fb) @@ -46,8 +46,11 @@ signal itemPressed(int vIndex) onItemPressed: { currentIndex = vIndex + _highlightRect.x = _repeater.itemAt(vIndex).x } + onCurrentIndexChanged: itemPressed(currentIndex) + /*! * this section olds somkind of the private sections of the object * this section is used as the calculation section whcih soppose not to be changed by user. @@ -104,7 +107,6 @@ text.text : modelData border.width: 0 onPressed: { - _highlightRect.x = _touchRect.x itemPressed(index) } }