Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/gr-qtgui/lib/WaterfallDisplayPlot.cc b/gr-qtgui/lib/WaterfallDisplayPlot.cc
- index 7abd9ae..94a8e62 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 527eea2..dafb539 100644
- --- a/gr-qtgui/lib/plot_waterfall.cc
- +++ b/gr-qtgui/lib/plot_waterfall.cc
- @@ -180,12 +180,13 @@ QImage PlotWaterfall::renderImage(const QwtScaleMap &xMap,
- if ( area.isEmpty() )
- return QImage();
- - QRect rect = transform(xMap, yMap, area);
- + QRectF rectF = QwtScaleMap::transform(xMap, yMap, area);
- + QRect rect(rectF.x(), rectF.y(), rectF.width(), rectF.height());
- QwtScaleMap xxMap = xMap;
- QwtScaleMap yyMap = yMap;
- - const QSize res = d_data->data->rasterHint(area);
- + const QSize res;//I dont even know = d_data->data->rasterHint(area);
- if ( res.isValid() )
- {
- /*
- diff --git a/gr-qtgui/lib/plot_waterfall.h b/gr-qtgui/lib/plot_waterfall.h
- index d4cb8d6..dae9efb 100644
- --- a/gr-qtgui/lib/plot_waterfall.h
- +++ b/gr-qtgui/lib/plot_waterfall.h
- @@ -37,9 +37,9 @@ public:
- #if QWT_VERSION < 0x060000
- virtual QwtDoubleRect boundingRect() const;
- -#endif
- virtual QSize rasterHint(const QwtDoubleRect &) const;
- +#endif
- virtual int rtti() const;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement