src/code/casaqt/QwtConfig.h

Modified
1 1 #pragma once
2 2 #include <qwt/qwt_global.h>
3 3 #include <qwt/qwt_scale_widget.h>
4 4 #include <qwt/qwt_plot_curve.h>
5 5 #include <qwt/qwt_color_map.h>
6 6 #if QWT_VERSION >= 0x060000
7 +#if QWT_VERSION >= 0x060200
8 +typedef QwtInterval QwtDoubleInterval;
9 +#else
7 10 #include <qwt/qwt_compat.h>
11 +#endif
8 12 #include <qwt/qwt_series_data.h>
9 13 #include <qwt/qwt_plot_canvas.h>
10 14
11 15 typedef QwtIntervalSeriesData qwt_interval_t;
12 16 inline void set_data(QwtPlotCurve *curve, const QVector<double> &x, const QVector<double> &y) {
13 17 curve->setSamples(x,y);
14 18 }
15 19 inline void set_color_map( QwtScaleWidget *scale, QwtDoubleInterval &range, const QwtLinearColorMap &colorMap ) {
16 20 QwtLinearColorMap* copyMap = new QwtLinearColorMap( colorMap.color1( ), colorMap.color2( ) );
17 21 QVector<double> colorStops = colorMap.colorStops();

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut