summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/time_sink_c_impl.cc
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2016-04-15 21:02:51 +0200
committerSebastian Koslowski <koslowski@kit.edu>2016-04-15 21:09:19 +0200
commit8cfc8b3408916ccb156fc25102bc1d9346bc004b (patch)
tree5c38adfedca3f4f4073d0621840ea578dd67ed4d /gr-qtgui/lib/time_sink_c_impl.cc
parent036264ef5c8e2376acd426a99ca42d29390e3e2a (diff)
parentbdf85171b8a35004cdbf634f48ff696787b5fbde (diff)
Merge remote-tracking branch 'upstream/master' into refactoring
Diffstat (limited to 'gr-qtgui/lib/time_sink_c_impl.cc')
-rw-r--r--gr-qtgui/lib/time_sink_c_impl.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/gr-qtgui/lib/time_sink_c_impl.cc b/gr-qtgui/lib/time_sink_c_impl.cc
index 9f1a04c5c8..98f603a8b0 100644
--- a/gr-qtgui/lib/time_sink_c_impl.cc
+++ b/gr-qtgui/lib/time_sink_c_impl.cc
@@ -143,7 +143,7 @@ namespace gr {
d_qApplication->setStyleSheet(sstext);
}
- int numplots = (d_nconnections > 0) ? d_nconnections : 1;
+ int numplots = (d_nconnections > 0) ? d_nconnections : 2;
d_main_gui = new TimeDisplayForm(numplots, d_parent);
d_main_gui->setNPoints(d_size);
d_main_gui->setSampleRate(d_samp_rate);
@@ -441,10 +441,16 @@ namespace gr {
d_main_gui->setTagMenu(which, en);
}
+ void
+ time_sink_c_impl::enable_axis_labels(bool en)
+ {
+ d_main_gui->setAxisLabels(en);
+ }
+
void
time_sink_c_impl::disable_legend()
{
- d_main_gui->disableLegend();
+ d_main_gui->disableLegend();
}
void
@@ -652,7 +658,7 @@ namespace gr {
uint64_t nr = nitems_read(n);
std::vector<gr::tag_t> tags;
- get_tags_in_range(tags, n, nr, nr + nitems + 1);
+ get_tags_in_range(tags, n, nr, nr + nitems);
for(size_t t = 0; t < tags.size(); t++) {
tags[t].offset = tags[t].offset - nr + (d_index-d_start-1);
}