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

Method commandActionWithIcon

src/common/actionmanager/commandaction.cpp:191–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191CommandAction *CommandAction::commandActionWithIcon(QAction *original, const QIcon &newIcon)
192{
193 auto proxyAction = new CommandAction(original);
194 proxyAction->setAction(original);
195 proxyAction->setIcon(newIcon);
196 proxyAction->setAttribute(UpdateText);
197 return proxyAction;
198}

Callers

nothing calls this directly

Calls 3

setActionMethod · 0.80
setIconMethod · 0.45
setAttributeMethod · 0.45

Tested by

no test coverage detected