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

void QStyle::unpolish ( QWidget  )  [virtual]

Uninitialize the given {widget}'s appearance.

This function is the counterpart to polish(). It is called for every polished widget whenever the style is dynamically changed; the former style has to unpolish its settings before the new style can polish them again.

Note that unpolish() will only be called if the widget is destroyed. This can cause problems in some cases, e.g, if you remove a widget from the UI, cache it, and then reinsert it after the style has changed; some of Qt's classes cache their widgets.

See also:
polish()

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

Definition at line 363 of file qstyle.cpp.

Referenced by QApplication::setStyle(), QWindowsStyle::unpolish(), and QMotifStyle::unpolish().

{
}


Generated by  Doxygen 1.6.0   Back to index