| 70 | } |
| 71 | |
| 72 | void ButtonGroup::wasChecked(ButtonWidget* self) { |
| 73 | for (auto const& pair : m_buttons) { |
| 74 | if (pair.second != self) |
| 75 | pair.second->setChecked(false); |
| 76 | } |
| 77 | |
| 78 | if (m_callback) |
| 79 | m_callback(self); |
| 80 | } |
| 81 | |
| 82 | bool ButtonGroup::toggle() const { |
| 83 | return m_toggle; |