summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ullattil@nokia.com>2010-02-16 12:36:05 (GMT)
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2010-02-16 12:42:43 (GMT)
commit08ec00c081ce51a924c65df3998657174f9428b6 (patch)
tree5bcb710ddff2a570f0031274a3840951dc78567f /src/gui/kernel
parentf6bced6b022573bdbe972ee43d17839ebe0b3dcc (diff)
downloadQt-08ec00c081ce51a924c65df3998657174f9428b6.zip
Qt-08ec00c081ce51a924c65df3998657174f9428b6.tar.gz
Qt-08ec00c081ce51a924c65df3998657174f9428b6.tar.bz2
Reusing sheets on Mac OS X 10.5 & above shows painting artifacts.
Window modal dialogs are shown as sheets on Mac, reusing them is showing some painting artificats. So make sure we create a new window everytime a sheet is shown. This only applies to Carbon, the Cocoa versions dont have this problem. Task-number: QTBUG-8198 Reviewed-by: MortenS
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qwidget_mac.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm
index 0ce369d..9e642b9 100644
--- a/src/gui/kernel/qwidget_mac.mm
+++ b/src/gui/kernel/qwidget_mac.mm
@@ -3348,6 +3348,8 @@ void QWidgetPrivate::show_sys()
bool realWindow = isRealWindow();
#ifndef QT_MAC_USE_COCOA
if (realWindow && !q->testAttribute(Qt::WA_Moved)) {
+ if (qt_mac_is_macsheet(q))
+ recreateMacWindow();
q->createWinId();
if (QWidget *p = q->parentWidget()) {
p->createWinId();