diff options
author | Tom Rondeau <trondeau@vt.edu> | 2011-10-16 19:45:29 -0400 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2011-10-16 19:45:29 -0400 |
commit | 45c2212608ca66b5fadbc860771e042198e1ebcd (patch) | |
tree | 482f6f23ca288164849e74ba471f61254bf66647 /gr-qtgui/lib/plot_waterfall.h | |
parent | 0319e05a4bb9a41082d00e334ac1647314dfaacd (diff) |
qtgui: more compatability issues.
Diffstat (limited to 'gr-qtgui/lib/plot_waterfall.h')
-rw-r--r-- | gr-qtgui/lib/plot_waterfall.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gr-qtgui/lib/plot_waterfall.h b/gr-qtgui/lib/plot_waterfall.h index 120b5b4cfd..d4cb8d6dae 100644 --- a/gr-qtgui/lib/plot_waterfall.h +++ b/gr-qtgui/lib/plot_waterfall.h @@ -38,20 +38,27 @@ public: #if QWT_VERSION < 0x060000 virtual QwtDoubleRect boundingRect() const; #endif - //virtual QSize rasterHint(const QwtDoubleRect &) const; + + virtual QSize rasterHint(const QwtDoubleRect &) const; virtual int rtti() const; virtual void draw(QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, - const QRectF &rect) const; + const QRect &rect) const; protected: +#if QWT_VERSION < 0x060000 + QImage renderImage(const QwtScaleMap &xMap, + const QwtScaleMap &yMap, + const QwtDoubleRect &rect) const; +#else QImage renderImage(const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &rect, const QSize &size=QSize(0,0)) const; +#endif private: class PrivateData; |