| 73 | } |
| 74 | |
| 75 | MultiListBox* MultiListItem::getOwner() const |
| 76 | { |
| 77 | if (getParent() != nullptr) |
| 78 | { |
| 79 | if (getParent()->isType<MultiListBox>()) |
| 80 | return getParent()->castType<MultiListBox>(); |
| 81 | if ((getParent()->getParent() != nullptr) && (getParent()->getParent()->getClientWidget() == getParent())) |
| 82 | { |
| 83 | if (getParent()->getParent()->isType<MultiListBox>()) |
| 84 | return getParent()->getParent()->castType<MultiListBox>(); |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | return nullptr; |
| 89 | } |
| 90 | |
| 91 | } // namespace MyGUI |
nothing calls this directly
no test coverage detected