]> sigrok.org Git - pulseview.git/commitdiff
When no range is specified, Int property spinbox should have a range set between...
authorJoel Holdsworth <redacted>
Sat, 7 Sep 2013 13:02:36 +0000 (14:02 +0100)
committerJoel Holdsworth <redacted>
Sun, 29 Sep 2013 14:56:12 +0000 (23:56 +0900)
pv/prop/int.cpp

index 761bd10a90f3c57b908678fce8029cfc6a39d921..98936292f1e5319460b791c3ae286a96756648f8 100644 (file)
@@ -55,6 +55,8 @@ QWidget* Int::get_widget(QWidget *parent)
        _spin_box->setSuffix(_suffix);
        if (_range)
                _spin_box->setRange((int)_range->first, (int)_range->second);
+       else
+               _spin_box->setRange(INT_MIN, INT_MAX);
 
        GVariant *const value = _getter ? _getter() : NULL;
        if (value) {