MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / WidgetGetTimer

Method WidgetGetTimer

source/ui/EditUi.cpp:2304–2320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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}
2309QiLoop 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 }

Callers

nothing calls this directly

Calls 3

RestrictedFunction · 0.85
toIntMethod · 0.80
textMethod · 0.45

Tested by

no test coverage detected