Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QColor QColor::lighter ( int  factor = 150  )  const [inline]

Returns a lighter (or darker) color, but does not change this object.

If the factor is greater than 100, this functions returns a lighter color. Setting factor to 150 returns a color that is 50% brighter. If the factor is less than 100, the return color is darker, but we recommend using the darker() function for this purpose. If the factor is 0 or negative, the return value is unspecified.

The function converts the current RGB color to HSV, multiplies the value (V) component by factor and converts the color back to RGB.

See also:
darker(), isValid()

Definition at line 265 of file qcolor.h.

References light().

Referenced by dark(), QCleanlooksStyle::drawComplexControl(), QPlastiqueStyle::drawComplexControl(), QPlastiqueStyle::drawControl(), QWindowsVistaStyle::drawControl(), QCleanlooksStyle::drawControl(), QCleanlooksStyle::drawPrimitive(), QPlastiqueStyle::drawPrimitive(), QCleanlooksStyle::polish(), QCDEStyle::standardPalette(), QMotifStyle::standardPalette(), QStyle::standardPalette(), and QCleanlooksStyle::standardPalette().

{ return light(f); }

Generated by  Doxygen 1.6.0   Back to index