diff options
author | Jukka Halonen <ext-jukka.a.halonen@nokia.com> | 2010-06-22 15:54:50 +0300 |
---|---|---|
committer | Daniel d'Andrada <daniel.dandrada@nokia.com> | 2010-06-24 10:09:52 +0300 |
commit | 95cf5a8700746db930313c9782dc10ce63d340ee (patch) | |
tree | 65940a0115f4d5b8bd4590de44d77154fc09e71e | |
parent | bf189a1cbe7232ce6a41c1c12043ccf015afa907 (diff) |
Fixes: NB#176134 - No unique object names for MActions in application menu
RevBy: Daniel d'Andrada
Details:
(In MApplicationMenuView) objectname of the menu item is set as combination
of "menuactioncommand" and objectname of the related action separated with
underscore ("menuactioncommand_<actionobjectname>"). If the action has no
objectname set then it will be just "menuactioncommand".
-rw-r--r-- | src/views/mapplicationmenuview.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/views/mapplicationmenuview.cpp b/src/views/mapplicationmenuview.cpp index 097ca7dc..ea40e68f 100644 --- a/src/views/mapplicationmenuview.cpp +++ b/src/views/mapplicationmenuview.cpp @@ -254,6 +254,10 @@ MWidget *MApplicationMenuViewPrivate::createButton(QAction *action) connect(item, SIGNAL(clicked()), action, SIGNAL(triggered())); w = item; } + + if (w && action && !action->objectName().isEmpty()) + w->setObjectName(w->objectName() + '_' + action->objectName()); + return w; } |