| 52 | } |
| 53 | |
| 54 | ButtonWidget* ButtonGroup::checkedButton() const { |
| 55 | for (auto const& pair : m_buttons) { |
| 56 | if (pair.second->isChecked()) |
| 57 | return pair.second; |
| 58 | } |
| 59 | return {}; |
| 60 | } |
| 61 | |
| 62 | int ButtonGroup::checkedId() const { |
| 63 | return id(checkedButton()); |
no test coverage detected