! Returns whether this layerable is visible, taking the visibility of the layerable parent and the visibility of this layerable's layer into account. This is the method that is consulted to decide whether a layerable shall be drawn or not. If this layerable has a direct layerable parent (usually set via hierarchies implemented in subclasses, like in the case of \ref QCPLayoutElement),
| 1430 | true. |
| 1431 | */ |
| 1432 | bool QCPLayerable::realVisibility() const |
| 1433 | { |
| 1434 | return mVisible && (!mLayer || mLayer->visible()) && (!mParentLayerable || mParentLayerable.data()->realVisibility()); |
| 1435 | } |
| 1436 | |
| 1437 | /*! |
| 1438 | This function is used to decide whether a click hits a layerable object or not. |
no test coverage detected