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

QIcon QStyle::standardIconImplementation ( StandardPixmap  standardIcon,
const QStyleOption option = 0,
const QWidget widget = 0 
) const [protected, slot]

Returns an icon for the given standardIcon.

Reimplement this slot to provide your own icons in a QStyle subclass; because of binary compatibility constraints, the standardIcon() function (introduced in Qt 4.1) is not virtual. Instead, standardIcon() will dynamically detect and call this slot. The default implementation simply calls the standardPixmap() function with the given parameters.

The standardIcon is a standard pixmap which can follow some existing GUI style or guideline. The option argument can be used to pass extra information required when defining the appropriate icon. The widget argument is optional and can also be used to aid the determination of the icon.

See also:

Reimplemented in QCDEStyle, QCleanlooksStyle, QCommonStyle, QMotifStyle, QPlastiqueStyle, QWindowsStyle, QWindowsVistaStyle, and QWindowsXPStyle.

Definition at line 2174 of file qstyle.cpp.

References standardPixmap().

    return QIcon(standardPixmap(standardIcon, option, widget));

Generated by  Doxygen 1.6.0   Back to index