| 530 | } |
| 531 | |
| 532 | void InventoryPane::selectTab(String const& selected) { |
| 533 | for (auto grid : m_itemGrids) |
| 534 | grid.second->hide(); |
| 535 | m_selectedTab = selected; |
| 536 | m_itemGrids[m_selectedTab]->show(); |
| 537 | m_itemGrids[m_selectedTab]->indicateChangedSlots(); |
| 538 | |
| 539 | auto tabs = fetchChild<ButtonGroupWidget>("gridModeSelector"); |
| 540 | for (auto button : tabs->buttons()) |
| 541 | if (button->data().toString().equalsIgnoreCase(m_tabButtonData[selected])) |
| 542 | tabs->select(tabs->id(button)); |
| 543 | } |
| 544 | |
| 545 | } |
nothing calls this directly
no test coverage detected