| 696 | } |
| 697 | |
| 698 | void ListBox::removeAllItems() |
| 699 | { |
| 700 | mTopIndex = 0; |
| 701 | mIndexSelect = ITEM_NONE; |
| 702 | mOffsetTop = 0; |
| 703 | |
| 704 | mItemsInfo.clear(); |
| 705 | |
| 706 | int offset = 0; |
| 707 | for (auto& widgetLine : mWidgetLines) |
| 708 | { |
| 709 | widgetLine->setVisible(false); |
| 710 | widgetLine->setPosition(0, offset); |
| 711 | offset += mHeightLine; |
| 712 | } |
| 713 | |
| 714 | // обновляем все |
| 715 | updateScroll(); |
| 716 | updateLine(true); |
| 717 | } |
| 718 | |
| 719 | void ListBox::setItemNameAt(size_t _index, const UString& _name) |
| 720 | { |
nothing calls this directly
no test coverage detected