summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-08-20 12:34:32 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-08-20 12:38:51 (GMT)
commit5051053485e4e96772897a36fa19a6d347770150 (patch)
tree321842d7043821ac5e47a1ee6e8fc77d5b7bbfd6
parent2a44538e0f43e93257c6d69d0b86d26219dd7a99 (diff)
downloadQt-5051053485e4e96772897a36fa19a6d347770150.zip
Qt-5051053485e4e96772897a36fa19a6d347770150.tar.gz
Qt-5051053485e4e96772897a36fa19a6d347770150.tar.bz2
Dont create native window handles when setting up gestures.
Apparently setting WA_DontCreateNativeAncestors and WA_NativeWindow attributes on widgets introduces painting artifacts. Temporary removing these attributes until there is a proper fix (those attributes will not be needed after the next gesture api improvement). Reviewed-by: trustme
-rw-r--r--src/gui/kernel/qwidget_win.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gui/kernel/qwidget_win.cpp b/src/gui/kernel/qwidget_win.cpp
index 77ab590..ea334b6 100644
--- a/src/gui/kernel/qwidget_win.cpp
+++ b/src/gui/kernel/qwidget_win.cpp
@@ -2060,8 +2060,6 @@ void QWidgetPrivate::winSetupGestures()
Q_Q(QWidget);
if (!q)
return;
- q->setAttribute(Qt::WA_DontCreateNativeAncestors);
- q->setAttribute(Qt::WA_NativeWindow);
if (!q->isVisible())
return;
QApplicationPrivate *qAppPriv = QApplicationPrivate::instance();