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

Method WidgetGetPopText

source/ui/EditUi.cpp:2296–2303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2294 else color.v_right = v;
2295 }
2296 {
2297 QString v = ui.color_bottom_edit->text();
2298 if (v.isEmpty());
2299 else if (QiVar::isInteger(v.toStdString())) color.rect.bottom = QiRange::Restricted(v.toInt(), QiColor::range_rect);
2300 else color.v_bottom = v;
2301 }
2302 color.rgbe.set(
2303 QiRange::Restricted(ui.color_red_edit->text().toInt(), QiColor::range_rgb),
2304 QiRange::Restricted(ui.color_green_edit->text().toInt(), QiColor::range_rgb),
2305 QiRange::Restricted(ui.color_blue_edit->text().toInt(), QiColor::range_rgb),
2306 ui.color_sim_edit->text().isEmpty() ? 10 : QiRange::Restricted(ui.color_sim_edit->text().toInt(), QiColor::range_rgb)

Callers

nothing calls this directly

Calls 3

RestrictedFunction · 0.85
toIntMethod · 0.80
textMethod · 0.45

Tested by

no test coverage detected