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

int QPaintDevice::numColors (  )  const [inline, inherited]

Returns the number of different colors available for the paint device. Since this value is an int, it will not be sufficient to represent the number of colors on 32 bit displays, in this case INT_MAX is returned instead.

Reimplemented in QImage.

Definition at line 101 of file qpaintdevice.h.

{ return metric(PdmNumColors); }

Generated by  Doxygen 1.6.0   Back to index