source: ntrip/trunk/BNC/qwt/qwt_compat.h@ 10382

Last change on this file since 10382 was 8127, checked in by stoecker, 8 years ago

update qwt and qwtpolar, many QT5 fixes (unfinished)

File size: 1.0 KB
Line 
1/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 * Qwt Widget Library
3 * Copyright (C) 1997 Josef Wilgen
4 * Copyright (C) 2002 Uwe Rathmann
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the Qwt License, Version 1.0
8 *****************************************************************************/
9
10#ifndef _QWT_COMPAT_H_
11#define _QWT_COMPAT_H_
12
13#include "qwt_global.h"
14#include "qwt_interval.h"
15#include "qwt_point_3d.h"
16#include <qlist.h>
17#include <qvector.h>
18#include <qpoint.h>
19#include <qsize.h>
20#include <qrect.h>
21#include <qpolygon.h>
22
23// A couple of definition for Qwt5 compatibility
24
25#define qwtMax qMax
26#define qwtMin qMin
27#define qwtAbs qAbs
28#define qwtRound qRound
29
30#define QwtArray QVector
31
32typedef QList<double> QwtValueList;
33typedef QPointF QwtDoublePoint;
34typedef QSizeF QwtDoubleSize;
35typedef QRectF QwtDoubleRect;
36
37typedef QPolygon QwtPolygon;
38typedef QPolygonF QwtPolygonF;
39typedef QwtInterval QwtDoubleInterval;
40typedef QwtPoint3D QwtDoublePoint3D;
41
42#endif
Note: See TracBrowser for help on using the repository browser.