#include <algorithm>#include <vector>#include "AppConfig.h"#include "DataVariantValidator.h"Go to the source code of this file.
Classes | |
| class | ColorType |
| An RGB triplet. More... | |
Defines | |
| #define | COLORTYPE_TO_QCOLOR(colorType) (colorType.isValid() ? QColor(colorType.mRed, colorType.mGreen, colorType.mBlue, colorType.mAlpha) : QColor()) |
| #define | QCOLOR_TO_COLORTYPE(qcolor) (qcolor.isValid() ? ColorType(qcolor.red(), qcolor.green(), qcolor.blue(), qcolor.alpha()) : ColorType()) |
| #define COLORTYPE_TO_QCOLOR | ( | colorType | ) | (colorType.isValid() ? QColor(colorType.mRed, colorType.mGreen, colorType.mBlue, colorType.mAlpha) : QColor()) [related] |
Converts a ColorType to a QColor.
| colorType | The ColorType to convert to a QColor. If an invalid ColorType is passed in, an invalid QColor will be created. |
Definition at line 30 of file ColorType.h.
| #define QCOLOR_TO_COLORTYPE | ( | qcolor | ) | (qcolor.isValid() ? ColorType(qcolor.red(), qcolor.green(), qcolor.blue(), qcolor.alpha()) : ColorType()) [related] |
Converts a QColor to a ColorType.
| qcolor | The QColor to convert to a ColorType. If an invalid QColor is passed in, an invalid ColorType will be created. |
Definition at line 44 of file ColorType.h.