- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/QtToolBar.cpp
r94d5ac6 r8859b5 44 44 QToolBar(_parent) 45 45 { 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"); 48 48 } 49 49 … … 57 57 { 58 58 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())); 60 61 QtMenuPipe *pipe = new QtMenuPipe(token,action); 61 62 QObject::connect(action, SIGNAL(triggered()),pipe,SLOT(called())); 62 63 plumbing.push_back(pipe); 64 present_actions.insert( token ); 63 65 } 66 67 void 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.