X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fprop%2Fdouble.cpp;h=c1e776e1f6c890c21d9d435cbc66316d8976e528;hb=793f8096c486d0fba871227d9772a510f7496c08;hp=d7c79ca7db19ce6481d3b8293c06848fcd5364d0;hpb=9f6af8bd3a6bc12f9b32b91cd2a173a8a7763f5c;p=pulseview.git diff --git a/pv/prop/double.cpp b/pv/prop/double.cpp index d7c79ca..c1e776e 100644 --- a/pv/prop/double.cpp +++ b/pv/prop/double.cpp @@ -50,15 +50,15 @@ Double::Double(QString name, QWidget* Double::get_widget(QWidget *parent) { - if(_spin_box) + if (_spin_box) return _spin_box; _spin_box = new QDoubleSpinBox(parent); _spin_box->setDecimals(_decimals); _spin_box->setSuffix(_suffix); - if(_range) + if (_range) _spin_box->setRange(_range->first, _range->second); - if(_step) + if (_step) _spin_box->setSingleStep(*_step); _spin_box->setValue(_getter ? _getter() : 0.0); @@ -70,7 +70,7 @@ void Double::commit() { assert(_setter); - if(!_spin_box) + if (!_spin_box) return; _setter(_spin_box->value());