| 2361 | QiPopText popText; |
| 2362 | popText.text = ui.popText_text_edit->text(); |
| 2363 | popText.time = ui.popText_time_edit->text().isEmpty() ? 1000 : QiRange::Restricted(ui.popText_time_edit->text().toInt(), QiPopText::range_time); |
| 2364 | popText.sync = ui.popText_wait_check->isChecked(); |
| 2365 | return popText; |
| 2366 | } |
| 2367 | QiTimer EditUi::WidgetGetTimer() |
| 2368 | { |
| 2369 | QiTimer timer; |
| 2370 | { |
| 2371 | QString v = ui.timer_min_edit->text(); |
| 2372 | if (v.isEmpty()) timer.min = 1000; |
| 2373 | else if (QiVar::isInteger(v.toStdString())) timer.min = QiRange::Restricted(v.toInt(), QiTimer::range_time); |
| 2374 | else timer.v_min = v; |