aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2011-10-17 21:04:25 -0700
committerTom Rondeau <trondeau@vt.edu>2011-10-17 21:04:25 -0700
commita69e35b2d9b5a07c86603a39b16111565258b41a (patch)
treef018bc778f59208af95a5ae1be51bdcaece11af8
parentMerge branch 'maint' (diff)
parentqtgui: a few more fixes for qwt 5.2/6.0. (diff)
downloadgnuradio-a69e35b2d9b5a07c86603a39b16111565258b41a.tar.xz
gnuradio-a69e35b2d9b5a07c86603a39b16111565258b41a.zip
Merge branch 'maint'
-rw-r--r--gr-qtgui/lib/WaterfallDisplayPlot.cc2
-rw-r--r--gr-qtgui/lib/plot_waterfall.cc7
2 files changed, 7 insertions, 2 deletions
diff --git a/gr-qtgui/lib/WaterfallDisplayPlot.cc b/gr-qtgui/lib/WaterfallDisplayPlot.cc
index 7abd9aeef..94a8e6210 100644
--- a/gr-qtgui/lib/WaterfallDisplayPlot.cc
+++ b/gr-qtgui/lib/WaterfallDisplayPlot.cc
@@ -318,7 +318,7 @@ WaterfallDisplayPlot::WaterfallDisplayPlot(QWidget* parent)
#else
d_spectrogram = new QwtPlotSpectrogram("Spectrogram");
- d_spectrogram->setData(*d_data);
+ d_spectrogram->setData(d_data);
d_spectrogram->setDisplayMode(QwtPlotSpectrogram::ImageMode, true);
d_spectrogram->setColorMap(new ColorMap_MultiColor());
#endif
diff --git a/gr-qtgui/lib/plot_waterfall.cc b/gr-qtgui/lib/plot_waterfall.cc
index 527eea22e..dbba657b8 100644
--- a/gr-qtgui/lib/plot_waterfall.cc
+++ b/gr-qtgui/lib/plot_waterfall.cc
@@ -180,12 +180,17 @@ QImage PlotWaterfall::renderImage(const QwtScaleMap &xMap,
if ( area.isEmpty() )
return QImage();
+#if QWT_VERSION < 0x060000
QRect rect = transform(xMap, yMap, area);
+ const QSize res = d_data->data->rasterHint(area);
+#else
+ QRect rect(0,0,0,0);
+ const QSize res(0,0);
+#endif
QwtScaleMap xxMap = xMap;
QwtScaleMap yyMap = yMap;
- const QSize res = d_data->data->rasterHint(area);
if ( res.isValid() )
{
/*