widgets/doublespinbox.cpp

changeset 259
c27612f0eac0
parent 253
8b994c917f69
child 264
76a025db4948
equal deleted inserted replaced
258:fe094d0687ad 259:c27612f0eac0
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 /*

mercurial