| 28 | } |
| 29 | |
| 30 | void TabItem::setCaption(const UString& _value) |
| 31 | { |
| 32 | TabControl* owner = getParent() != nullptr ? getParent()->castType<TabControl>(false) : nullptr; |
| 33 | if (owner != nullptr) |
| 34 | owner->setItemName(this, _value); |
| 35 | else |
| 36 | Base::setCaption(_value); |
| 37 | } |
| 38 | |
| 39 | const UString& TabItem::getCaption() const |
| 40 | { |
nothing calls this directly
no test coverage detected