Ignore:
Timestamp:
Feb 13, 2010, 6:36:55 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Adopted to 4.6.1 changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qwidget_pm.cpp

    r564 r569  
    13761376    Q_D(QWidget);
    13771377    if (!isWindow() && parentWidget())
    1378         parentWidget()->d_func()->invalidateBuffer(geometry());
     1378        parentWidget()->d_func()->invalidateBuffer(d->effectiveRectFor(geometry()));
    13791379    d->deactivateWidgetCleanup();
    13801380    if (testAttribute(Qt::WA_WState_Created)) {
     
    14121412            qt_WinDestroyWindow(id);
    14131413        }
    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        }
    14151419    }
    14161420}
     
    14581462    bool wasCreated = q->testAttribute(Qt::WA_WState_Created);
    14591463    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()));
    14611465
    14621466    WId old_fid = frameWinId();
     
    16411645}
    16421646
     1647#ifndef QT_NO_CURSOR
    16431648void QWidget::grabMouse(const QCursor &cursor)
    16441649{
     
    16541659    }
    16551660}
     1661#endif
    16561662
    16571663void QWidget::releaseMouse()
     
    19291935 */
    19301936
    1931 void QWidgetPrivate::setWSGeometry(bool dontShow)
     1937void QWidgetPrivate::setWSGeometry(bool dontShow, const QRect &)
    19321938{
    19331939    Q_Q(QWidget);
Note: See TracChangeset for help on using the changeset viewer.