| 739 | } |
| 740 | |
| 741 | bool Widget::isAncestorsVisible(Node* node) |
| 742 | { |
| 743 | if (nullptr == node) |
| 744 | { |
| 745 | return true; |
| 746 | } |
| 747 | Node* parent = node->getParent(); |
| 748 | |
| 749 | if (parent && !parent->isVisible()) |
| 750 | { |
| 751 | return false; |
| 752 | } |
| 753 | return this->isAncestorsVisible(parent); |
| 754 | } |
| 755 | |
| 756 | bool Widget::isAncestorsEnabled() |
| 757 | { |