Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 350 Bytes

README-qcolor-from-literal.md

File metadata and controls

10 lines (6 loc) · 350 Bytes

qcolor-from-literal

Warns when a QColor is being constructed from a string literal such as "#RRGGBB". This is less performant than calling the ctor that takes ints, since it creates temporary QStrings.

Example:

QColor c("#000000"); // Use QColor c(0, 0, 0) instead

c.setNamedColor("#001122"); // Use c = QColor(0, 0x11, 0x22) instead