MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / addTopToolItemToRight

Method addTopToolItemToRight

src/plugins/core/uicontroller/controller.cpp:848–856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846}
847
848DToolButton *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
858void Controller::showTopToolBar()
859{

Callers 1

addToToolBarMethod · 0.80

Calls 2

createIconButtonFunction · 0.85
actionMethod · 0.45

Tested by

no test coverage detected