8#include <QtWidgets/qtwidgetsglobal.h>
10#include <QtGui/qwindowdefs.h>
11#include <QtCore/qatomic.h>
12#include <QtCore/qlist.h>
17class QColormapPrivate;
19#if QT_WARN_DEPRECATED_UP_TO >= QT_VERSION_CHECK(6
, 11
, 0
)
20# if defined(Q_CC_GNU_ONLY) && Q_CC_GNU < 1300
22# define QT_DEPRECATED_VERSION_6_11_CUSTOM __attribute__((deprecated))
24# define QT_DEPRECATED_VERSION_6_11_CUSTOM QT_DEPRECATED
27# define QT_DEPRECATED_VERSION_6_11_CUSTOM
30#if QT_REMOVAL_QT7_DEPRECATED_SINCE(6
, 11
)
31class Q_WIDGETS_EXPORT QT_DEPRECATED_VERSION_6_11_CUSTOM QColormap
34 enum Mode { Direct, Indexed, Gray };
36 static void initialize();
37 static void cleanup();
39 static QColormap instance(
int screen = -1);
41 QColormap(
const QColormap &colormap);
44 QColormap &operator=(
const QColormap &colormap);
51 uint pixel(
const QColor &color)
const;
52 const QColor colorAt(uint pixel)
const;
54 const QList<QColor> colormap()
const;
62#undef QT_DEPRECATED_VERSION_6_11_CUSTOM