summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/TimeDomainDisplayPlot.cc
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2012-07-15 16:02:44 -0400
committerTom Rondeau <trondeau@vt.edu>2012-07-15 16:02:44 -0400
commit11ce14eecc0ce37826060b9de9e9da439ac32967 (patch)
tree837b00441b09a4997284131a1aa393510113a902 /gr-qtgui/lib/TimeDomainDisplayPlot.cc
parent6926bfd62e0067b6c797d3a1dc4e9f8d3ba7f9ae (diff)
qtgui: wip: some fixes to make updating markers/symbols Qwt5/6 compatible.
Diffstat (limited to 'gr-qtgui/lib/TimeDomainDisplayPlot.cc')
-rw-r--r--gr-qtgui/lib/TimeDomainDisplayPlot.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/gr-qtgui/lib/TimeDomainDisplayPlot.cc b/gr-qtgui/lib/TimeDomainDisplayPlot.cc
index 82cfc0bf26..a10418bddf 100644
--- a/gr-qtgui/lib/TimeDomainDisplayPlot.cc
+++ b/gr-qtgui/lib/TimeDomainDisplayPlot.cc
@@ -145,16 +145,14 @@ TimeDomainDisplayPlot::TimeDomainDisplayPlot(int nplots, QWidget* parent)
_plot_curve[i]->attach(this);
_plot_curve[i]->setPen(QPen(colors[i]));
- QwtSymbol *symbol = new QwtSymbol(QwtSymbol::NoSymbol);
- symbol->setPen(QPen(colors[i]));
- symbol->setColor(colors[i]);
- symbol->setSize(7, 7);
- _plot_curve[i]->setSymbol(symbol);
+ QwtSymbol *symbol = new QwtSymbol(QwtSymbol::NoSymbol, QBrush(colors[i]), QPen(colors[i]), QSize(7,7));
#if QWT_VERSION < 0x060000
_plot_curve[i]->setRawData(_xAxisPoints, _dataPoints[i], _numPoints);
+ _plot_curve[i]->setSymbol(*symbol);
#else
_plot_curve[i]->setRawSamples(_xAxisPoints, _dataPoints[i], _numPoints);
+ _plot_curve[i]->setSymbol(symbol);
#endif
}