diff options
author | Tom Rondeau <trondeau@vt.edu> | 2012-07-29 23:12:44 -0400 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2012-07-29 23:12:44 -0400 |
commit | 8b9a46be56a9e8146aeded28fec6dce0b99cb1a2 (patch) | |
tree | 453a424873340a11dfbb17ad7302054b68483fd9 /gr-qtgui | |
parent | d253890c08d3b5bb6c989dd278970e8f00294e9f (diff) |
qtgui: fix to work with Qwt5.
Diffstat (limited to 'gr-qtgui')
-rw-r--r-- | gr-qtgui/lib/DisplayPlot.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gr-qtgui/lib/DisplayPlot.cc b/gr-qtgui/lib/DisplayPlot.cc index 06fd85d523..a1ea1763a4 100644 --- a/gr-qtgui/lib/DisplayPlot.cc +++ b/gr-qtgui/lib/DisplayPlot.cc @@ -145,7 +145,7 @@ DisplayPlot::setLineWidth(int which, int width) // Scale the marker size proportionally #if QWT_VERSION < 0x060000 - QwtSymbol *sym = (QwtSymbol*)&_plot_curve[which]->symbol() + QwtSymbol *sym = (QwtSymbol*)&_plot_curve[which]->symbol(); sym->setSize(7+10*log10(width), 7+10*log10(width)); _plot_curve[which]->setSymbol(*sym); #else @@ -166,9 +166,15 @@ DisplayPlot::setLineStyle(int which, Qt::PenStyle style) void DisplayPlot::setLineMarker(int which, QwtSymbol::Style marker) { +#if QWT_VERSION < 0x060000 + QwtSymbol sym = (QwtSymbol)_plot_curve[which]->symbol(); + sym.setStyle(marker); + _plot_curve[which]->setSymbol(sym); +#else QwtSymbol *sym = (QwtSymbol*)_plot_curve[which]->symbol(); sym->setStyle(marker); _plot_curve[which]->setSymbol(sym); +#endif } void |