qwt_compat.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #ifndef _QWT_COMPAT_H_
  10. #define _QWT_COMPAT_H_
  11. #include "qwt_global.h"
  12. #include "qwt_interval.h"
  13. #include "qwt_point_3d.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. // A couple of definition for Qwt5 compatibility
  21. #define qwtMax qMax
  22. #define qwtMin qMin
  23. #define qwtAbs qAbs
  24. #define qwtRound qRound
  25. #define QwtArray QVector
  26. typedef QList<double> QwtValueList;
  27. typedef QPointF QwtDoublePoint;
  28. typedef QSizeF QwtDoubleSize;
  29. typedef QRectF QwtDoubleRect;
  30. typedef QPolygon QwtPolygon;
  31. typedef QPolygonF QwtPolygonF;
  32. typedef QwtInterval QwtDoubleInterval;
  33. typedef QwtPoint3D QwtDoublePoint3D;
  34. #endif