- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/QtToolBar.cpp
r8859b5 r94d5ac6 44 44 QToolBar(_parent) 45 45 { 46 addActionItem("undo", "undo the last Action", "edit-undo");47 addActionItem("redo", "redo the last Action", "edit-redo");46 addActionItem("undo", "undo", "edit-undo"); 47 addActionItem("redo", "redo", "edit-redo"); 48 48 } 49 49 … … 57 57 { 58 58 QAction *action = addAction(QString(description.c_str())); 59 action->setIcon(FavActions.getIcon(token, icon_name)); 60 action->setToolTip(QString(description.c_str())); 59 action->setIcon(QIcon::fromTheme(QString(icon_name.c_str()))); 61 60 QtMenuPipe *pipe = new QtMenuPipe(token,action); 62 61 QObject::connect(action, SIGNAL(triggered()),pipe,SLOT(called())); 63 62 plumbing.push_back(pipe); 64 present_actions.insert( token );65 63 } 66 67 void QtToolBar::addFavoriteActionItems(const unsigned int _max)68 {69 // separate favorite actions70 addSeparator();71 FavActions.addToolBarActions(*this, _max);72 }73
Note:
See TracChangeset
for help on using the changeset viewer.