diff options
author | Tom Rondeau <trondeau@vt.edu> | 2013-02-07 09:55:37 -0500 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2013-02-07 09:55:37 -0500 |
commit | 9f3b242d30d8fd0ea7f48504590ac4933a76d3cb (patch) | |
tree | 9d5e92d694f95dc3a22b34b638c15de9f1047a2f /gr-qtgui/lib/plot_raster.cc | |
parent | 2be5c8ec24fce7884ce7975592615bd1aa4ee84b (diff) |
qtgui: Fixed time raster plots to build with QWT5.
Also added a warning about poor performance of these plots with QWT5.
Diffstat (limited to 'gr-qtgui/lib/plot_raster.cc')
-rw-r--r-- | gr-qtgui/lib/plot_raster.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gr-qtgui/lib/plot_raster.cc b/gr-qtgui/lib/plot_raster.cc index bccff88f10..76bff473e9 100644 --- a/gr-qtgui/lib/plot_raster.cc +++ b/gr-qtgui/lib/plot_raster.cc @@ -312,11 +312,21 @@ QImage PlotTimeRaster::renderImage(const QwtScaleMap &xMap, return image; } +#if QWT_VERSION < 0x060000 +QwtDoubleInterval +PlotTimeRaster::interval(Qt::Axis ax) const +{ + return d_data->data->range(); +} + +#else + QwtInterval PlotTimeRaster::interval(Qt::Axis ax) const { return d_data->data->interval(ax); } +#endif /*! \brief Draw the raster |