summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/histogram_sink_f_impl.cc
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2014-07-02 17:52:38 -0400
committerTom Rondeau <tom@trondeau.com>2014-07-02 18:10:50 -0400
commit0812870ee8359a60c376f07cda3dbc6d73ebf36d (patch)
tree0928ef19666f2d0b235dedadca0f6febcbe44aaa /gr-qtgui/lib/histogram_sink_f_impl.cc
parent11fd45d36db4f0cb0609534f70b031c937d542a0 (diff)
qtgui: fixes problem of set name not showing up.
Defaults to blank string now; a blank string does not set the title to save vertical space. Any other value will now set the title of the plotter.
Diffstat (limited to 'gr-qtgui/lib/histogram_sink_f_impl.cc')
-rw-r--r--gr-qtgui/lib/histogram_sink_f_impl.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gr-qtgui/lib/histogram_sink_f_impl.cc b/gr-qtgui/lib/histogram_sink_f_impl.cc
index dc3e63cb01..bd43f8645c 100644
--- a/gr-qtgui/lib/histogram_sink_f_impl.cc
+++ b/gr-qtgui/lib/histogram_sink_f_impl.cc
@@ -126,6 +126,9 @@ namespace gr {
d_main_gui->setNPoints(d_size);
d_main_gui->setXaxis(d_xmin, d_xmax);
+ if(d_name.size() > 0)
+ set_title(d_name);
+
// initialize update time to 10 times a second
set_update_time(0.1);
}