diff options
author | Tom Rondeau | 2011-10-16 19:45:29 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-10-16 19:45:29 -0400 |
commit | 45c2212608ca66b5fadbc860771e042198e1ebcd (patch) | |
tree | 482f6f23ca288164849e74ba471f61254bf66647 /gr-qtgui/lib/TimeDomainDisplayPlot.cc | |
parent | 0319e05a4bb9a41082d00e334ac1647314dfaacd (diff) | |
download | gnuradio-45c2212608ca66b5fadbc860771e042198e1ebcd.tar.gz gnuradio-45c2212608ca66b5fadbc860771e042198e1ebcd.tar.bz2 gnuradio-45c2212608ca66b5fadbc860771e042198e1ebcd.zip |
qtgui: more compatability issues.
Diffstat (limited to 'gr-qtgui/lib/TimeDomainDisplayPlot.cc')
-rw-r--r-- | gr-qtgui/lib/TimeDomainDisplayPlot.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gr-qtgui/lib/TimeDomainDisplayPlot.cc b/gr-qtgui/lib/TimeDomainDisplayPlot.cc index 8bc40b998..eca6076b6 100644 --- a/gr-qtgui/lib/TimeDomainDisplayPlot.cc +++ b/gr-qtgui/lib/TimeDomainDisplayPlot.cc @@ -170,8 +170,14 @@ TimeDomainDisplayPlot::TimeDomainDisplayPlot(int nplots, QWidget* parent) // emit the position of clicks on widget _picker = new QwtDblClickPlotPicker(canvas()); + +#if QWT_VERSION < 0x060000 + connect(_picker, SIGNAL(selected(const QwtDoublePoint &)), + this, SLOT(OnPickerPointSelected(const QwtDoublePoint &))); +#else connect(_picker, SIGNAL(selected(const QPointF &)), this, SLOT(OnPickerPointSelected(const QPointF &))); +#endif // Configure magnify on mouse wheel _magnifier = new QwtPlotMagnifier(canvas()); @@ -320,6 +326,15 @@ TimeDomainDisplayPlot::SetSampleRate(double sr, double units, } +#if QWT_VERSION < 0x060000 +void +TimeDomainDisplayPlot::OnPickerPointSelected(const QwtDoublePoint & p) +{ + QPointF point = p; + //fprintf(stderr,"OnPickerPointSelected %f %f\n", point.x(), point.y()); + emit plotPointSelected(point); +} +#else void TimeDomainDisplayPlot::OnPickerPointSelected(const QPointF & p) { @@ -327,5 +342,6 @@ TimeDomainDisplayPlot::OnPickerPointSelected(const QPointF & p) //fprintf(stderr,"OnPickerPointSelected %f %f\n", point.x(), point.y()); emit plotPointSelected(point); } +#endif #endif /* TIME_DOMAIN_DISPLAY_PLOT_C */ |