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

int QIcon::serialNumber (  )  const

Returns a number that identifies the contents of this QIcon object. Distinct QIcon objects can have the same serial number if they refer to the same contents (but they don't have to). Also, the serial number of a QIcon object may change during its lifetime.

Use cacheKey() instead.

A null icon always has a serial number of 0.

Serial numbers are mostly useful in conjunction with caching.

See also:

Definition at line 626 of file qicon.cpp.

    return d ? d->serialNum : 0;

Generated by  Doxygen 1.6.0   Back to index