| 90 | } |
| 91 | |
| 92 | void Node::disable(unsigned int state) |
| 93 | { |
| 94 | bool wasVisible = visible(); |
| 95 | |
| 96 | _state &= ~state; |
| 97 | |
| 98 | // After clearing a flag, this node can only switch from invisible to visible |
| 99 | if (!wasVisible && visible()) |
| 100 | { |
| 101 | onVisibilityChanged(true); |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | bool Node::checkStateFlag(unsigned int state) const |
| 106 | { |
no outgoing calls
no test coverage detected