| 846 | } |
| 847 | |
| 848 | DToolButton *Controller::addTopToolItemToRight(Command *action, bool addSeparator, quint8 priority) |
| 849 | { |
| 850 | if (!action || !action->action()) |
| 851 | return nullptr; |
| 852 | |
| 853 | auto iconBtn = createIconButton(action->action()); |
| 854 | addWidgetToTopTool(new AbstractWidget(iconBtn), addSeparator, false, priority); |
| 855 | return iconBtn; |
| 856 | } |
| 857 | |
| 858 | void Controller::showTopToolBar() |
| 859 | { |
no test coverage detected