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

Method updateState

src/common/actionmanager/commandaction.cpp:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void CommandActionPrivate::updateState()
41{
42 if (action) {
43 update(action, false);
44 } else {
45 if (q->hasAttribute(CommandAction::Hide))
46 q->setVisible(false);
47 q->setEnabled(false);
48 }
49}
50
51void CommandActionPrivate::updateToolTipWithKeySequence()
52{

Callers 4

CommandActionMethod · 0.80
setActionMethod · 0.80
setAttributeMethod · 0.80
removeAttributeMethod · 0.80

Calls 3

setVisibleMethod · 0.80
hasAttributeMethod · 0.45
setEnabledMethod · 0.45

Tested by

no test coverage detected