Qwt User's Guide: qwt_valuelist.h Source File

- Main Page
- Classes
- Files
- Related Pages

- File List
- File Members

# qwt_valuelist.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 // vim: expandtab
    00011
    00012 #ifndef QWT_VALUELIST_H
    00013 #define QWT_VALUELIST_H
    00014
    00015 #include "qwt_global.h"
    00016
    00021 #if QT_VERSION < 0x040000
    00022
    00023 #include <qvaluelist.h>
    00024
    00025 #if defined(QWT_TEMPLATEDLL)
    00026 // MOC_SKIP_BEGIN
    00027 template class QWT_EXPORT QValueList<double>;
    00028 // MOC_SKIP_END
    00029 #endif
    00030
    00031 typedef QValueList<double> QwtValueList;
    00032
    00033 #else // QT_VERSION >= 0x040000
    00034
    00035 #include <qlist.h>
    00036
    00037 #if defined(QWT_TEMPLATEDLL)
    00038
    00039 #if QT_VERSION < 0x040300
    00040 // Some compilers have problems,
    00041 // without a qHash(double) implementation
    00042 #include <qset.h>
    00043 #include <qvector.h>
    00044 inline uint qHash(double key) { return uint(key); }
    00045 #endif
    00046
    00047 // MOC_SKIP_BEGIN
    00048 template class QWT_EXPORT QList<double>;
    00049 // MOC_SKIP_END
    00050
    00051 #endif // QWT_TEMPLATEDLL
    00052
    00053 typedef QList<double> QwtValueList;
    00054
    00055 #endif
    00056
    00057 #endif