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