diff options
author | Tom Rondeau | 2010-05-01 19:06:13 -0400 |
---|---|---|
committer | Tom Rondeau | 2010-05-01 19:06:13 -0400 |
commit | 6606af991b15174cbdbaca738669a21461b0fbe6 (patch) | |
tree | 1fc38aa738e8dccc675ac3da0938fbd3e992eca2 /gr-qtgui/src/lib/qtgui_sink_c.h | |
parent | f1b71c9525dd56e2c296a2bca4b2db9ed1a320ce (diff) | |
download | gnuradio-6606af991b15174cbdbaca738669a21461b0fbe6.tar.gz gnuradio-6606af991b15174cbdbaca738669a21461b0fbe6.tar.bz2 gnuradio-6606af991b15174cbdbaca738669a21461b0fbe6.zip |
Fixes the replotting update. It's now based on a QTimer so it's in the event buffer as opposed to a best effort based on a hand-made timer. The interval between GUI updates is settable through the qtsink_X objects with set_update_time(newtime). This update makes the plotting much more stable. It also fixes the time scale of the waterfall plot to actually mean the right thing.
Diffstat (limited to 'gr-qtgui/src/lib/qtgui_sink_c.h')
-rw-r--r-- | gr-qtgui/src/lib/qtgui_sink_c.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gr-qtgui/src/lib/qtgui_sink_c.h b/gr-qtgui/src/lib/qtgui_sink_c.h index 91c6b03e6..1f6c28473 100644 --- a/gr-qtgui/src/lib/qtgui_sink_c.h +++ b/gr-qtgui/src/lib/qtgui_sink_c.h @@ -86,6 +86,8 @@ private: bool d_plotfreq, d_plotwaterfall, d_plotwaterfall3d, d_plottime, d_plotconst; + double d_update_time; + QWidget *d_parent; SpectrumGUIClass *d_main_gui; @@ -111,6 +113,8 @@ public: void set_constellation_pen_size(int size); void set_frequency_axis(double min, double max); + void set_update_time(double t); + QApplication *d_qApplication; qtgui_obj *d_object; |