summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin/qlibrary_unix.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-08-28 22:37:13 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2019-08-25 16:31:32 +0200
commit77de5a329c98c3787725cb3c0a50d8f369b9479c (patch)
tree56b78558bfa414b1a6092ff731c079ac67e84b4d /src/corelib/plugin/qlibrary_unix.cpp
parentc2aaa9e18ecc62cb399010f063c6938771a92563 (diff)
Long live QColorConstants!
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>
Diffstat (limited to 'src/corelib/plugin/qlibrary_unix.cpp')
0 files changed, 0 insertions, 0 deletions