summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/TimeDomainDisplayPlot.cc
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2012-06-24 18:17:35 -0400
committerTom Rondeau <trondeau@vt.edu>2012-06-24 18:17:35 -0400
commit53ef7dc95ba23d2e1e086c3004c02bc75542a849 (patch)
treee9e7b9fe41f6e41930ea566c86af7eb75455746c /gr-qtgui/lib/TimeDomainDisplayPlot.cc
parente587c32fe4994f81d5a69a90ee450e914f16660f (diff)
qtgui: adding ability to set line width's from time display form.
Diffstat (limited to 'gr-qtgui/lib/TimeDomainDisplayPlot.cc')
-rw-r--r--gr-qtgui/lib/TimeDomainDisplayPlot.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/gr-qtgui/lib/TimeDomainDisplayPlot.cc b/gr-qtgui/lib/TimeDomainDisplayPlot.cc
index 80789da509..bf2e93b2d8 100644
--- a/gr-qtgui/lib/TimeDomainDisplayPlot.cc
+++ b/gr-qtgui/lib/TimeDomainDisplayPlot.cc
@@ -242,7 +242,17 @@ TimeDomainDisplayPlot::title(int which)
void
TimeDomainDisplayPlot::setColor(int which, QString color)
{
- _plot_curve[which]->setPen(QPen(color));
+ QPen pen(_plot_curve[which]->pen());
+ pen.setColor(color);
+ _plot_curve[which]->setPen(pen);
+}
+
+void
+TimeDomainDisplayPlot::setLineWidth(int which, int width)
+{
+ QPen pen(_plot_curve[which]->pen());
+ pen.setWidth(width);
+ _plot_curve[which]->setPen(pen);
}
void TimeDomainDisplayPlot::replot()