| 64 | } |
| 65 | |
| 66 | void SingleChoiceBox::toggled(bool checked) |
| 67 | { |
| 68 | auto toggledIns = qobject_cast<DRadioButton*>(sender()); |
| 69 | if (toggledIns && checked) { |
| 70 | Info info { toggledIns->text(), |
| 71 | toggledIns->toolTip(), |
| 72 | toggledIns->icon() }; |
| 73 | emit selected(info); |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | uint qHash(const SingleChoiceBox::Info &info, uint seed) |
| 78 | { |