projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67fe5e9
)
When no range is specified, Int property spinbox should have a range set between...
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sat, 7 Sep 2013 13:02:36 +0000
(14:02 +0100)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sun, 29 Sep 2013 14:56:12 +0000
(23:56 +0900)
pv/prop/int.cpp
patch
|
blob
|
history
diff --git
a/pv/prop/int.cpp
b/pv/prop/int.cpp
index 761bd10a90f3c57b908678fce8029cfc6a39d921..98936292f1e5319460b791c3ae286a96756648f8 100644
(file)
--- a/
pv/prop/int.cpp
+++ b/
pv/prop/int.cpp
@@
-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) {