diff options
author | Morten Johan Sørvig <morten.sorvig@nokia.com> | 2009-11-02 13:54:23 (GMT) |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@nokia.com> | 2009-11-02 13:54:23 (GMT) |
commit | 5f7d92b32e375aa7c2d0acf69d1fc033c6fd476a (patch) | |
tree | 554214ee21704178224e86a9e8478bbdce8db7c9 /src | |
parent | 4204fdcc04e20eabd19704f2235ba06afa84605e (diff) | |
download | Qt-5f7d92b32e375aa7c2d0acf69d1fc033c6fd476a.zip Qt-5f7d92b32e375aa7c2d0acf69d1fc033c6fd476a.tar.gz Qt-5f7d92b32e375aa7c2d0acf69d1fc033c6fd476a.tar.bz2 |
Disable the move-by-scrolling optimization.
The current implementation fails when moving the
widget onto an area that has just been exposed
as a part of a window resize operation.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/kernel/qwidget_mac.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm index db11815..89f2d02 100644 --- a/src/gui/kernel/qwidget_mac.mm +++ b/src/gui/kernel/qwidget_mac.mm @@ -3756,7 +3756,7 @@ void QWidgetPrivate::stackUnder_sys(QWidget *w) /* Modifies the bounds for a widgets backing HIView during moves and resizes. Also updates the widget, either by scrolling its contents or repainting, depending on the WA_StaticContents - and QWidgetPrivate::isOpaque flags. + flag */ static void qt_mac_update_widget_posisiton(QWidget *q, QRect oldRect, QRect newRect) { @@ -3773,8 +3773,8 @@ static void qt_mac_update_widget_posisiton(QWidget *q, QRect oldRect, QRect newR // Perform a normal (complete repaint) update in some cases: if ( - // move-by-scroll requires QWidgetPrivate::isOpaque set - (isMove && q->testAttribute(Qt::WA_OpaquePaintEvent) == false) || + // always repaint on move. + (isMove) || // limited update on resize requires WA_StaticContents. (isResize && q->testAttribute(Qt::WA_StaticContents) == false) || |