- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Menu/Qt4/QtMenu.hpp
r86c013 r56f73b 16 16 17 17 #include <Qt/qaction.h> 18 19 #include "Menu/Qt4/QMenu_tooltip.hpp"20 18 21 19 #include <iostream> … … 105 103 virtual void addActionItem(const std::string &token, const std::string &description) 106 104 { 107 QAction *action = MenuInstance->addAction(QString(getNameWithAccelerator(token).c_str())); 108 action->setToolTip(QString(description.c_str())); 109 action->setWhatsThis(QString(description.c_str())); 105 QAction *action = MenuInstance->addAction(QString(getNameWithAccelerator(description).c_str())); 110 106 QtMenuPipe *pipe = new QtMenuPipe(token,action); 111 107 QObject::connect(action, SIGNAL(triggered()),pipe,SLOT(called())); … … 120 116 virtual void addSubmenuItem(const std::string &token, const std::string &description) 121 117 { 122 QMenu_tooltip *Menu = new QMenu_tooltip(QString(token.c_str())); 123 MenuInstance->addMenu(Menu); 124 QtMenu<QMenu_tooltip> *NewMenu = new QtMenu<QMenu_tooltip>(Menu, token); 118 QMenu *Menu = MenuInstance->addMenu(QString(token.c_str())); 119 QtMenu<QMenu> *NewMenu = new QtMenu<QMenu>(Menu, token); 125 120 NewMenu->init(); 126 121 }
Note:
See TracChangeset
for help on using the changeset viewer.