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 |
|
---|
30 | typedef QList<double> QwtValueList;
|
---|
31 | typedef QPointF QwtDoublePoint;
|
---|
32 | typedef QSizeF QwtDoubleSize;
|
---|
33 | typedef QRectF QwtDoubleRect;
|
---|
34 |
|
---|
35 | typedef QPolygon QwtPolygon;
|
---|
36 | typedef QPolygonF QwtPolygonF;
|
---|
37 | typedef QwtInterval QwtDoubleInterval;
|
---|
38 | typedef QwtPoint3D QwtDoublePoint3D;
|
---|
39 |
|
---|
40 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.