diff options
author | Tom Rondeau <trondeau@vt.edu> | 2012-06-24 18:02:21 -0400 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2012-06-24 18:02:21 -0400 |
commit | 1d41b8f1341452908e5bc61a6a41a6baa1f353d6 (patch) | |
tree | 134a09ed3f7d239566c88aa59ef20eb91fc9e81b /gr-qtgui/lib/TimeDomainDisplayPlot.cc | |
parent | d97764ce6040aff8023b43323b4bc048a907a1fd (diff) |
qtgui: Adding menu feature to timedisplayform.
Right now, right clicking outside of plot window brings up a menu to turn grid on/off and to set the line color for all curves in the figure.
Diffstat (limited to 'gr-qtgui/lib/TimeDomainDisplayPlot.cc')
-rw-r--r-- | gr-qtgui/lib/TimeDomainDisplayPlot.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gr-qtgui/lib/TimeDomainDisplayPlot.cc b/gr-qtgui/lib/TimeDomainDisplayPlot.cc index e71c9b7075..80789da509 100644 --- a/gr-qtgui/lib/TimeDomainDisplayPlot.cc +++ b/gr-qtgui/lib/TimeDomainDisplayPlot.cc @@ -233,6 +233,12 @@ TimeDomainDisplayPlot::setTitle(int which, QString title) _plot_curve[which]->setTitle(title); } +QString +TimeDomainDisplayPlot::title(int which) +{ + return _plot_curve[which]->title().text(); +} + void TimeDomainDisplayPlot::setColor(int which, QString color) { |