Qwt User's Guide: qwt_compat.h Source File

Qwt User's Guide 6.0.1

- Main Page
- Related Pages
- Classes
- Files

- File List

# 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 <qlist.h>
    00015 #include <qvector.h>
    00016 #include <qpoint.h>
    00017 #include <qsize.h>
    00018 #include <qrect.h>
    00019 #include <qpolygon.h>
    00020
    00021 // A couple of definition for Qwt5 compatibility
    00022
    00023 #define qwtMax qMax
    00024 #define qwtMin qMin
    00025 #define qwtAbs qAbs
    00026 #define qwtRound qRound
    00027
    00028 #define QwtArray QVector
    00029
    00030 typedef QList<double> QwtValueList;
    00031 typedef QPointF QwtDoublePoint;
    00032 typedef QSizeF QwtDoubleSize;
    00033 typedef QRectF QwtDoubleRect;
    00034
    00035 typedef QPolygon QwtPolygon;
    00036 typedef QPolygonF QwtPolygonF;
    00037 typedef QwtInterval QwtDoubleInterval;
    00038 typedef QwtPoint3D QwtDoublePoint3D;
    00039
    00040 #endif