| 55 | } |
| 56 | |
| 57 | ItemSlotWidgetPtr ItemGridWidget::itemWidgetAt(Vec2I const& position) const { |
| 58 | auto pos = bagLocationAt(position); |
| 59 | if (pos != NPos) |
| 60 | return m_slots[pos]; |
| 61 | return {}; |
| 62 | } |
| 63 | |
| 64 | ItemSlotWidgetPtr ItemGridWidget::itemWidgetAt(size_t index) const { |
| 65 | if (index < m_slots.size()) |