----------------------------------------------------------------------------- VObject::isEnabled(); Returns whether this object is enabled. -----------------------------------------------------------------------------
| 100 | // |
| 101 | //----------------------------------------------------------------------------- |
| 102 | bool VObject::isEnabled( void ) |
| 103 | { |
| 104 | VObject *parent = dynamic_cast<VObject*>( getParent() ); |
| 105 | if ( parent && !parent->isEnabled() ) |
| 106 | { |
| 107 | return false; |
| 108 | } |
| 109 | |
| 110 | return mEnabled; |
| 111 | } |
| 112 | |
| 113 | //----------------------------------------------------------------------------- |
| 114 | // |
no outgoing calls
no test coverage detected