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

QPixmap QIconEngine::pixmap ( const QSize size,
QIcon::Mode  mode,
QIcon::State  state 
) [virtual]

Returns the icon as a pixmap with the required size, mode, and state. The default implementation creates a new pixmap and calls paint() to fill it.

Definition at line 81 of file qiconengine.cpp.

References paint().

    QPixmap pm(size);
        QPainter p(&pm);
        paint(&p, QRect(QPoint(0,0),size), mode, state);
    return pm;

Generated by  Doxygen 1.6.0   Back to index