22 * Constructs a new double spin box. The locale is fixed to system default "C". |
22 * Constructs a new double spin box. The locale is fixed to system default "C". |
23 */ |
23 */ |
24 DoubleSpinBox::DoubleSpinBox(QWidget* parent) : |
24 DoubleSpinBox::DoubleSpinBox(QWidget* parent) : |
25 QDoubleSpinBox {parent} |
25 QDoubleSpinBox {parent} |
26 { |
26 { |
27 this->setLocale({"C"}); |
27 this->setLocale(QLocale{"C"}); |
28 this->setRange(-1e6, 1e6); |
28 this->setRange(-1e6, 1e6); |
29 this->setDecimals(4); |
29 this->setDecimals(4); |
30 } |
30 } |
31 |
31 |
32 /* |
32 /* |