| 202 | } |
| 203 | |
| 204 | bool Node::hasVisibility() const { |
| 205 | const Node* cur = this; |
| 206 | while ( cur ) { |
| 207 | if ( !cur->isVisible() ) |
| 208 | return false; |
| 209 | cur = cur->getParent(); |
| 210 | } |
| 211 | return true; |
| 212 | } |
| 213 | |
| 214 | Node* Node::setEnabled( const bool& enabled ) { |
| 215 | if ( mEnabled != enabled ) { |
no test coverage detected