Index: sources/gui/qml/components/MainMenu.qml =================================================================== diff -u -r73091a6f5717c0fc88e236c06c618ad361f30a3c -r506a9e3db1a20bda1685e38c5e9041005c9a4a4f --- sources/gui/qml/components/MainMenu.qml (.../MainMenu.qml) (revision 73091a6f5717c0fc88e236c06c618ad361f30a3c) +++ sources/gui/qml/components/MainMenu.qml (.../MainMenu.qml) (revision 506a9e3db1a20bda1685e38c5e9041005c9a4a4f) @@ -30,7 +30,7 @@ Bottom } - property variant titles : [] + property var titles : [] property bool hidden : false property int position : MainMenu.Position.Bottom property bool hasRightText : false @@ -53,7 +53,7 @@ * this section is used as the calculation section whcih soppose not to be changed by user. */ QtObject { id: _private - readonly property variant repeaterTitles: hasRightText ? titles.slice(0,titles.length - 1) : titles + readonly property var repeaterTitles: hasRightText ? titles.slice(0,titles.length - 1) : titles readonly property string rightText : titles.length ? titles[titles.length - 1] : "" readonly property int partitionWidth: _row.width / ( _private.repeaterTitles.length * 2 + 1) } @@ -119,11 +119,12 @@ anchors.right: _rightTouchRect.left anchors.verticalCenter: parent.verticalCenter } - TouchRect { id : _rightTouchRect - visible: hasRightText - width: partitionWidth + rightTextGaps - height: parent.height - text.text: _private.rightText + TouchRect { id : _rightTouchRect + animated : false + visible : hasRightText + width : partitionWidth + rightTextGaps + height : parent.height + text.text : _private.rightText border.width: 0 onPressed: { itemPressed( titles.length ? titles.length - 1 : -1 )