77de5a329c
QColorConstant is a C++11 version of Qt::GlobalColor, except that instead of Qt::red being an enum, QColorConstants::red is an actual QColor instance, a bit like in the Qt 3 days. In addition, the SVG names that QColor understands are also available, with the same values. Technically, when building a QColor from a color name, QColor ignores casing and whitespaces; we stick to the SVG/CSS official color names (which are lowercase), and prefix them with Svg to clarify where they come from. For instance, note how SVG's gray is not Qt::gray. [ChangeLog][QtGui][[QColor] Added QColorConstants, a namespace containing constexpr QColor instances. Change-Id: Ic9fab26a9a537fcc43cc230da28f4c6314a32438 Reviewed-by: Marc Mutz <marc.mutz@kdab.com> |
||
---|---|---|
.. | ||
qbrush | ||
qcolor | ||
qcolorspace | ||
qpagelayout | ||
qpagesize | ||
qpaintengine | ||
qpainter | ||
qpainterpath | ||
qpainterpathstroker | ||
qpathclipper | ||
qpdfwriter | ||
qpen | ||
qpolygon | ||
qregion | ||
qtransform | ||
qwmatrix | ||
painting.pro |