diff options
author | Tom Rondeau | 2011-10-17 21:04:25 -0700 |
---|---|---|
committer | Tom Rondeau | 2011-10-17 21:04:25 -0700 |
commit | a69e35b2d9b5a07c86603a39b16111565258b41a (patch) | |
tree | f018bc778f59208af95a5ae1be51bdcaece11af8 /gr-qtgui | |
parent | 641a60118ac5955bcb9d820874c13fe149b1095c (diff) | |
parent | b9156049149863d75e77dc619ce4d96f8ec0eafc (diff) | |
download | gnuradio-a69e35b2d9b5a07c86603a39b16111565258b41a.tar.gz gnuradio-a69e35b2d9b5a07c86603a39b16111565258b41a.tar.bz2 gnuradio-a69e35b2d9b5a07c86603a39b16111565258b41a.zip |
Merge branch 'maint'
Diffstat (limited to 'gr-qtgui')
-rw-r--r-- | gr-qtgui/lib/WaterfallDisplayPlot.cc | 2 | ||||
-rw-r--r-- | gr-qtgui/lib/plot_waterfall.cc | 7 |
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() ) { /* |