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

Method WidgetGetEditDialog

source/ui/EditUi.cpp:2438–2446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2436{
2437 QiClock clock;
2438 QTime time = ui.clock_time_edit->time();
2439 clock.time = QiRange::Restricted((int)QiTime::toTimeStamp(time.hour(), time.minute(), time.second()), QiClock::range_time);
2440 return clock;
2441}
2442QiOcr EditUi::WidgetGetOcr()
2443{
2444 QiOcr ocr;
2445 {
2446 QString v = ui.ocr_left_edit->text();
2447 if (v.isEmpty());
2448 else if (QiVar::isInteger(v.toStdString())) ocr.rect.left = QiRange::Restricted(v.toInt(), QiOcr::range_rect);
2449 else ocr.v_left = v;

Callers

nothing calls this directly

Calls 1

textMethod · 0.45

Tested by

no test coverage detected