diff options
author | Morten Sørvig <msorvig@trolltech.com> | 2009-06-26 15:26:15 (GMT) |
---|---|---|
committer | Morten Sørvig <msorvig@trolltech.com> | 2009-06-26 15:26:15 (GMT) |
commit | 8fae676fb0bd36f507ffa0815fa824370eb06a7c (patch) | |
tree | dfd42f141fd44d1ebfcdd7e3dc57c2b5b502e98f /tests/auto | |
parent | 2df18ac4dd17f8630f1ea0f6dc2415aca53d931a (diff) | |
download | Qt-8fae676fb0bd36f507ffa0815fa824370eb06a7c.zip Qt-8fae676fb0bd36f507ffa0815fa824370eb06a7c.tar.gz Qt-8fae676fb0bd36f507ffa0815fa824370eb06a7c.tar.bz2 |
Fix painting errors in QScrollArea on Mac (Carbon)
This is mainly a stop-gap solution for 4.5.x. It trades painting performance
for correct painting.
Commit 7988d05da changed the opaque test from q->testAttribute(Qt::WA_OpaquePaintEvent)
to qt_widget_private(w)->isOpaque in qt_mac_update_widget_posisiton. This means
we'll do optimized moves in more cases. Unfortunately it also causes painting errors
in some cases (see the task).
Revert the commit for now to put the 4.5 branch in a god shape.
Task-number: 252295
Reviewed-by: nrc
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qwidget/tst_qwidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp index e65fef1..7b68732 100644 --- a/tests/auto/qwidget/tst_qwidget.cpp +++ b/tests/auto/qwidget/tst_qwidget.cpp @@ -3964,6 +3964,7 @@ public: :QWidget(parent) { setAttribute(Qt::WA_StaticContents); + setAttribute(Qt::WA_OpaquePaintEvent); setPalette(Qt::red); // Make sure we have an opaque palette. setAutoFillBackground(true); gotPaintEvent = false; |