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

Method setAction

src/common/actionmanager/commandaction.cpp:138–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void CommandAction::setAction(QAction *action)
139{
140 if (d->action == action)
141 return;
142
143 d->disconnectAction();
144 d->action = action;
145 d->connectAction();
146 d->updateState();
147 emit currentActionChanged(action);
148}
149
150QAction *CommandAction::action() const
151{

Callers 2

commandActionWithIconMethod · 0.80
setCurrentContextMethod · 0.80

Calls 3

disconnectActionMethod · 0.80
connectActionMethod · 0.80
updateStateMethod · 0.80

Tested by

no test coverage detected