Skip to content

Commit

Permalink
qtgui: fixes issue of setting min/max when using qwt < 6.1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
trondeau committed Oct 21, 2014
1 parent d268898 commit 3f31847
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gr-qtgui/grc/qtgui_number_sink.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ $(gui_hint()($win))</make>
<hide>part</hide>
</param>
<param>
<name>max</name>
<name>Max</name>
<key>max</key>
<value>1</value>
<type>float</type>
Expand Down
3 changes: 3 additions & 0 deletions gr-qtgui/lib/numberdisplayform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ NumberDisplayForm::setScale(int which, int min, int max)
d_min[which] = min;
d_max[which] = max;
d_indicator[which]->setScale(min, max);
#if QWT_VERSION < 0x060100
d_indicator[which]->setRange(min, max);
#endif
}

void
Expand Down

0 comments on commit 3f31847

Please sign in to comment.