| 2302 | QiRange::Restricted(ui.color_green_edit->text().toInt(), QiColor::range_rgb), |
| 2303 | QiRange::Restricted(ui.color_blue_edit->text().toInt(), QiColor::range_rgb), |
| 2304 | ui.color_sim_edit->text().isEmpty() ? 10 : QiRange::Restricted(ui.color_sim_edit->text().toInt(), QiColor::range_rgb) |
| 2305 | ); |
| 2306 | color.move = ui.color_move_check->isChecked(); |
| 2307 | return color; |
| 2308 | } |
| 2309 | QiLoop EditUi::WidgetGetLoop() |
| 2310 | { |
| 2311 | QiLoop loop; |
| 2312 | { |
| 2313 | QString v = ui.loop_min_edit->text(); |
| 2314 | if (v.isEmpty()) loop.min = 1; |
| 2315 | else if (QiVar::isInteger(v.toStdString())) loop.min = QiRange::Restricted(v.toInt(), QiLoop::range_count); |
| 2316 | else loop.v_min = v; |
| 2317 | } |
| 2318 | { |
| 2319 | QString v = ui.loop_max_edit->text(); |
| 2320 | if (v.isEmpty()) loop.max = loop.min, loop.v_max = loop.v_min; |
| 2321 | else if (QiVar::isInteger(v.toStdString())) loop.max = QiRange::Restricted(v.toInt(), QiLoop::range_count); |
| 2322 | else loop.v_max = v; |
| 2323 | } |
nothing calls this directly
no test coverage detected