source: ntrip/branches/BNC_2.12/qwt/qwt_compat.h@ 8796

Last change on this file since 8796 was 4271, checked in by mervart, 13 years ago
File size: 1012 bytes
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 <qlist.h>
15#include <qvector.h>
16#include <qpoint.h>
17#include <qsize.h>
18#include <qrect.h>
19#include <qpolygon.h>
20
21// A couple of definition for Qwt5 compatibility
22
23#define qwtMax qMax
24#define qwtMin qMin
25#define qwtAbs qAbs
26#define qwtRound qRound
27
28#define QwtArray QVector
29
30typedef QList<double> QwtValueList;
31typedef QPointF QwtDoublePoint;
32typedef QSizeF QwtDoubleSize;
33typedef QRectF QwtDoubleRect;
34
35typedef QPolygon QwtPolygon;
36typedef QPolygonF QwtPolygonF;
37typedef QwtInterval QwtDoubleInterval;
38typedef QwtPoint3D QwtDoublePoint3D;
39
40#endif
Note: See TracBrowser for help on using the repository browser.