| 1168 | } |
| 1169 | |
| 1170 | static bool isStepperGroup(Window& w, WidgetIndex_t index, WidgetType buttonType) |
| 1171 | { |
| 1172 | const auto& widgets = w.widgets; |
| 1173 | |
| 1174 | if (widgets[index].type != WidgetType::textbox && widgets[index].type != WidgetType::wt_3) |
| 1175 | { |
| 1176 | return false; |
| 1177 | } |
| 1178 | |
| 1179 | if (static_cast<size_t>(index + 2) >= widgets.size()) |
| 1180 | { |
| 1181 | return false; |
| 1182 | } |
| 1183 | |
| 1184 | if (widgets[index + 1].type != buttonType) |
| 1185 | { |
| 1186 | return false; |
| 1187 | } |
| 1188 | |
| 1189 | if (widgets[index + 2].type != buttonType) |
| 1190 | { |
| 1191 | return false; |
| 1192 | } |
| 1193 | |
| 1194 | return true; |
| 1195 | } |
| 1196 | |
| 1197 | static std::optional<WidgetIndex_t> getStepperGroupWidgetIndex(Window& w, WidgetIndex_t startIndex) |
| 1198 | { |
no test coverage detected