| 137 | } |
| 138 | |
| 139 | static bool isFirstEntry(const QComboBox *l, QString name, int idx) |
| 140 | { |
| 141 | for (auto i = l->count() - 1; i >= 0; i--) { |
| 142 | if (l->itemText(i) == name) { |
| 143 | return idx == i; |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | // If entry cannot be found we dont want the selection to be empty |
| 148 | return false; |
| 149 | } |
| 150 | |
| 151 | TransitionSelection TransitionSelectionWidget::GetCurrentSelection() const |
| 152 | { |
no test coverage detected