src/gui/kernel/qwidget_qws.cpp
changeset 33 3e2da88830cd
parent 18 2f34d5167611
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
   254 
   254 
   255 
   255 
   256 void QWidget::destroy(bool destroyWindow, bool destroySubWindows)
   256 void QWidget::destroy(bool destroyWindow, bool destroySubWindows)
   257 {
   257 {
   258     Q_D(QWidget);
   258     Q_D(QWidget);
   259 
   259     d->aboutToDestroy();
   260     if (!isWindow() && parentWidget())
   260     if (!isWindow() && parentWidget())
   261         parentWidget()->d_func()->invalidateBuffer(d->effectiveRectFor(geometry()));
   261         parentWidget()->d_func()->invalidateBuffer(d->effectiveRectFor(geometry()));
   262 
   262 
   263     d->deactivateWidgetCleanup();
   263     d->deactivateWidgetCleanup();
   264     if (testAttribute(Qt::WA_WState_Created)) {
   264     if (testAttribute(Qt::WA_WState_Created)) {