2 #include "ui_samples_count.h"
7 : ui(new
Ui::SamplesCount), _widget(new QWidget())
11 connect(
ui->spinBoxMilliseconds, qOverload<int>(&QSpinBox::valueChanged),
this,
12 [=](
int) { emit parametersChanged(); });
27 QDomElement& parent_element)
const
29 QDomElement widget_el = doc.createElement(
"options");
30 widget_el.setAttribute(
"milliseconds",
ui->spinBoxMilliseconds->value());
31 parent_element.appendChild(widget_el);
37 QDomElement widget_el = parent_element.firstChildElement(
"options");
38 if (widget_el.isNull())
42 int ms = widget_el.attribute(
"milliseconds",
"1000").toInt();
43 ui->spinBoxMilliseconds->setValue(ms);
55 const double delta = 0.001 * double(
ui->spinBoxMilliseconds->value());
56 const double min_time = point.x - delta;