| 149 | } |
| 150 | |
| 151 | TransitionSelection TransitionSelectionWidget::GetCurrentSelection() const |
| 152 | { |
| 153 | TransitionSelection result; |
| 154 | const auto text = currentText(); |
| 155 | auto transition = GetWeakTransitionByQString(text); |
| 156 | if (transition) { |
| 157 | result._type = TransitionSelection::Type::TRANSITION; |
| 158 | result._transition = transition; |
| 159 | } else { |
| 160 | if (IsCurrentTransitionSelected(text)) { |
| 161 | result._type = TransitionSelection::Type::CURRENT; |
| 162 | } |
| 163 | if (IsAnyTransitionSelected(text)) { |
| 164 | result._type = TransitionSelection::Type::ANY; |
| 165 | } |
| 166 | } |
| 167 | return result; |
| 168 | } |
| 169 | |
| 170 | bool TransitionSelectionWidget::IsCurrentTransitionSelected( |
| 171 | const QString &name) const |
nothing calls this directly
no test coverage detected