Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Views/Qt4/QtToolBar.cpp

    r94d5ac6 r8859b5  
    4444  QToolBar(_parent)
    4545{
    46   addActionItem("undo", "undo", "edit-undo");
    47   addActionItem("redo", "redo", "edit-redo");
     46  addActionItem("undo", "undo the last Action", "edit-undo");
     47  addActionItem("redo", "redo the last Action", "edit-redo");
    4848}
    4949
     
    5757{
    5858  QAction *action = addAction(QString(description.c_str()));
    59   action->setIcon(QIcon::fromTheme(QString(icon_name.c_str())));
     59  action->setIcon(FavActions.getIcon(token, icon_name));
     60  action->setToolTip(QString(description.c_str()));
    6061  QtMenuPipe *pipe = new QtMenuPipe(token,action);
    6162  QObject::connect(action, SIGNAL(triggered()),pipe,SLOT(called()));
    6263  plumbing.push_back(pipe);
     64  present_actions.insert( token );
    6365}
     66
     67void QtToolBar::addFavoriteActionItems(const unsigned int _max)
     68{
     69  // separate favorite actions
     70  addSeparator();
     71  FavActions.addToolBarActions(*this, _max);
     72}
     73
Note: See TracChangeset for help on using the changeset viewer.