Index: sources/gui/qml/components/MainMenu.qml =================================================================== diff -u -r442d1c4f53c96991d4103485ff5ff683ed00d4f7 -refb033a62e24fe2d804221ea0cb496c5411fdb2b --- sources/gui/qml/components/MainMenu.qml (.../MainMenu.qml) (revision 442d1c4f53c96991d4103485ff5ff683ed00d4f7) +++ sources/gui/qml/components/MainMenu.qml (.../MainMenu.qml) (revision efb033a62e24fe2d804221ea0cb496c5411fdb2b) @@ -36,12 +36,17 @@ property bool hasRightText : false property int rightTextGaps : 20 property bool hasLogo : false + property int currentIndex : 0 + property string currentTitle : titles[currentIndex] /*! * \brief Emits when a menu item pressed * \param vIndex is the index of the pressed item */ signal itemPressed(int vIndex) + onItemPressed: { + currentIndex = vIndex + } /*! * this section olds somkind of the private sections of the object @@ -124,7 +129,6 @@ text.text: _private.rightText border.width: 0 button.onPressed: { - console.debug(titles) itemPressed( titles.length ? titles.length - 1 : -1 ) } anchors.right: parent.right