summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/plot_waterfall.h
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/lib/plot_waterfall.h')
-rw-r--r--gr-qtgui/lib/plot_waterfall.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/gr-qtgui/lib/plot_waterfall.h b/gr-qtgui/lib/plot_waterfall.h
index 120b5b4cf..d4cb8d6da 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;