summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-12 09:17:04 (GMT)
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-12 10:59:48 (GMT)
commit7e0c7fada2b3e4c451be406489f5bcdaf985250e (patch)
tree74c573dd3f507103687c4c219c5e7783ac00486d
parentde8328017516abbe133dc2304bfea5fad5474da3 (diff)
downloadQt-7e0c7fada2b3e4c451be406489f5bcdaf985250e.zip
Qt-7e0c7fada2b3e4c451be406489f5bcdaf985250e.tar.gz
Qt-7e0c7fada2b3e4c451be406489f5bcdaf985250e.tar.bz2
fix decoration of DontShowOnScreen widgets on Windows CE
Widgets with the WA_DontShowOnScreen attribute must not have a window decoration. Autotest: tst_QWidget::initialPosForDontShowOnScreenWidgets Reviewed-by: thartman
-rw-r--r--src/gui/kernel/qwidget_wince.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_wince.cpp b/src/gui/kernel/qwidget_wince.cpp
index 5b7c638..4090b74 100644
--- a/src/gui/kernel/qwidget_wince.cpp
+++ b/src/gui/kernel/qwidget_wince.cpp
@@ -197,7 +197,7 @@ void QWidgetPrivate::create_sys(WId window, bool initializeWindow, bool destroyO
int exsty = WS_EX_NOPARENTNOTIFY;
if (topLevel) {
- if (!(flags & Qt::FramelessWindowHint) && !tool)
+ if (!(flags & Qt::FramelessWindowHint) && !tool && !q->testAttribute(Qt::WA_DontShowOnScreen))
style = (WS_OVERLAPPED) | WS_SYSMENU;
else
style = WS_POPUP;