Ignore:
File:
1 edited

Legend:

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

    r56f73b r86c013  
    1616
    1717#include <Qt/qaction.h>
     18
     19#include "Menu/Qt4/QMenu_tooltip.hpp"
    1820
    1921#include <iostream>
     
    103105  virtual void addActionItem(const std::string &token, const std::string &description)
    104106  {
    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()));
    106110    QtMenuPipe *pipe = new QtMenuPipe(token,action);
    107111    QObject::connect(action, SIGNAL(triggered()),pipe,SLOT(called()));
     
    116120  virtual void addSubmenuItem(const std::string &token, const std::string &description)
    117121  {
    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);
    120125    NewMenu->init();
    121126  }
Note: See TracChangeset for help on using the changeset viewer.