Qwt User's Guide svn
qwt_compat.h
00001 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
00002  * Qwt Widget Library
00003  * Copyright (C) 1997   Josef Wilgen
00004  * Copyright (C) 2002   Uwe Rathmann
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the Qwt License, Version 1.0
00008  *****************************************************************************/
00009 
00010 #ifndef _QWT_COMPAT_H_
00011 #define _QWT_COMPAT_H_
00012 
00013 #include "qwt_global.h"
00014 #include "qwt_interval.h"
00015 #include "qwt_point_3d.h"
00016 #include <qlist.h>
00017 #include <qvector.h>
00018 #include <qpoint.h>
00019 #include <qsize.h>
00020 #include <qrect.h>
00021 #include <qpolygon.h>
00022 
00023 // A couple of definition for Qwt5 compatibility
00024 
00025 #define qwtMax qMax
00026 #define qwtMin qMin
00027 #define qwtAbs qAbs
00028 #define qwtRound qRound
00029 
00030 #define QwtArray QVector
00031 
00032 typedef QList<double> QwtValueList;
00033 typedef QPointF QwtDoublePoint;
00034 typedef QSizeF QwtDoubleSize;
00035 typedef QRectF QwtDoubleRect;
00036 
00037 typedef QPolygon QwtPolygon;
00038 typedef QPolygonF QwtPolygonF;
00039 typedef QwtInterval QwtDoubleInterval;
00040 typedef QwtPoint3D QwtDoublePoint3D;
00041 
00042 #endif
qmi style