| 131 | } |
| 132 | |
| 133 | void TabControl::onWidgetCreated(Widget* _widget) |
| 134 | { |
| 135 | Base::onWidgetCreated(_widget); |
| 136 | |
| 137 | TabItem* child = _widget->castType<TabItem>(false); |
| 138 | if (child != nullptr) |
| 139 | { |
| 140 | child->setCoord( |
| 141 | _getWidgetTemplate()->getAbsoluteLeft() - getAbsoluteLeft(), |
| 142 | _getWidgetTemplate()->getAbsoluteTop() - getAbsoluteTop(), |
| 143 | _getWidgetTemplate()->getWidth(), |
| 144 | _getWidgetTemplate()->getHeight()); |
| 145 | child->setAlign(_getWidgetTemplate()->getAlign()); |
| 146 | |
| 147 | _insertItem(ITEM_NONE, UString(), child, Any::Null); |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | TabItem* TabControl::insertItemAt(size_t _index, const UString& _name, Any _data) |
| 152 | { |
nothing calls this directly
no test coverage detected