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

Method setAttribute

src/common/actionmanager/command.cpp:182–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void Command::setAttribute(CommandAttribute attr)
183{
184 d->attributes |= attr;
185 switch (attr) {
186 case Command::CA_Hide:
187 d->action->setAttribute(CommandAction::Hide);
188 break;
189 case Command::CA_UpdateText:
190 d->action->setAttribute(CommandAction::UpdateText);
191 break;
192 case Command::CA_UpdateIcon:
193 d->action->setAttribute(CommandAction::UpdateIcon);
194 break;
195 case Command::CA_NonConfigurable:
196 break;
197 }
198}
199
200void Command::removeAttribute(CommandAttribute attr)
201{

Callers 15

QsciScintillaBaseMethod · 0.45
contextMenuEventMethod · 0.45
processUpdateFileMethod · 0.45
downloadFileMethod · 0.45
createAvatarFunction · 0.45
messageFunction · 0.45
slotCloseOutputPaneMethod · 0.45
initUIMethod · 0.45
addToToolBarMethod · 0.45
initializeMethod · 0.45
actionRenameDocumentMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected