Changeset 569 for trunk/src/gui/kernel/qwidget_pm.cpp
- Timestamp:
- Feb 13, 2010, 6:36:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qwidget_pm.cpp
r564 r569 1376 1376 Q_D(QWidget); 1377 1377 if (!isWindow() && parentWidget()) 1378 parentWidget()->d_func()->invalidateBuffer( geometry());1378 parentWidget()->d_func()->invalidateBuffer(d->effectiveRectFor(geometry())); 1379 1379 d->deactivateWidgetCleanup(); 1380 1380 if (testAttribute(Qt::WA_WState_Created)) { … … 1412 1412 qt_WinDestroyWindow(id); 1413 1413 } 1414 d->setWinId(0); 1414 QT_TRY { 1415 d->setWinId(0); 1416 } QT_CATCH (const std::bad_alloc &) { 1417 // swallow - destructors must not throw 1418 } 1415 1419 } 1416 1420 } … … 1458 1462 bool wasCreated = q->testAttribute(Qt::WA_WState_Created); 1459 1463 if (q->isVisible() && q->parentWidget() && parent != q->parentWidget()) 1460 q->parentWidget()->d_func()->invalidateBuffer( q->geometry());1464 q->parentWidget()->d_func()->invalidateBuffer(effectiveRectFor(q->geometry())); 1461 1465 1462 1466 WId old_fid = frameWinId(); … … 1641 1645 } 1642 1646 1647 #ifndef QT_NO_CURSOR 1643 1648 void QWidget::grabMouse(const QCursor &cursor) 1644 1649 { … … 1654 1659 } 1655 1660 } 1661 #endif 1656 1662 1657 1663 void QWidget::releaseMouse() … … 1929 1935 */ 1930 1936 1931 void QWidgetPrivate::setWSGeometry(bool dontShow )1937 void QWidgetPrivate::setWSGeometry(bool dontShow, const QRect &) 1932 1938 { 1933 1939 Q_Q(QWidget);
Note:
See TracChangeset
for help on using the changeset viewer.