summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib
diff options
context:
space:
mode:
authorTom Rondeau2012-10-12 15:26:20 -0400
committerTom Rondeau2012-10-12 15:26:20 -0400
commitd2048cb7c850f35ecca85596515363361ccd8f12 (patch)
treeb334b95bebd9b9e658802e70cd15f96789b632e8 /gr-qtgui/lib
parent48dd3fed73409a22b1bfd612cb74352cc555d0d0 (diff)
downloadgnuradio-d2048cb7c850f35ecca85596515363361ccd8f12.tar.gz
gnuradio-d2048cb7c850f35ecca85596515363361ccd8f12.tar.bz2
gnuradio-d2048cb7c850f35ecca85596515363361ccd8f12.zip
qtgui: fixed qtgui time sink to take the bandwidth parameter to set x-axis correctly.
Diffstat (limited to 'gr-qtgui/lib')
-rw-r--r--gr-qtgui/lib/qtgui_time_sink_c.cc1
-rw-r--r--gr-qtgui/lib/qtgui_time_sink_f.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/gr-qtgui/lib/qtgui_time_sink_c.cc b/gr-qtgui/lib/qtgui_time_sink_c.cc
index 574fd93ad..773199462 100644
--- a/gr-qtgui/lib/qtgui_time_sink_c.cc
+++ b/gr-qtgui/lib/qtgui_time_sink_c.cc
@@ -83,6 +83,7 @@ qtgui_time_sink_c::initialize()
}
d_main_gui = new TimeDisplayForm(d_nconnections, d_parent);
+ d_main_gui->setFrequencyRange(0, 0, d_bandwidth);
// initialize update time to 10 times a second
set_update_time(0.1);
diff --git a/gr-qtgui/lib/qtgui_time_sink_f.cc b/gr-qtgui/lib/qtgui_time_sink_f.cc
index 09fdf0a92..1a23023b5 100644
--- a/gr-qtgui/lib/qtgui_time_sink_f.cc
+++ b/gr-qtgui/lib/qtgui_time_sink_f.cc
@@ -83,6 +83,7 @@ qtgui_time_sink_f::initialize()
}
d_main_gui = new TimeDisplayForm(d_nconnections, d_parent);
+ d_main_gui->setFrequencyRange(0, 0, d_bandwidth);
// initialize update time to 10 times a second
set_update_time(0.1);