Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Menu/Qt4/QtMenu.hpp

    r86c013 r56f73b  
    1616
    1717#include <Qt/qaction.h>
    18 
    19 #include "Menu/Qt4/QMenu_tooltip.hpp"
    2018
    2119#include <iostream>
     
    105103  virtual void addActionItem(const std::string &token, const std::string &description)
    106104  {
    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()));
    110106    QtMenuPipe *pipe = new QtMenuPipe(token,action);
    111107    QObject::connect(action, SIGNAL(triggered()),pipe,SLOT(called()));
     
    120116  virtual void addSubmenuItem(const std::string &token, const std::string &description)
    121117  {
    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);
    125120    NewMenu->init();
    126121  }
Note: See TracChangeset for help on using the changeset viewer.