summaryrefslogtreecommitdiffstats
path: root/src/gui
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 09:21:54 (GMT)
commit711f3691231ede6d8bf4e04f4dd8eb528655e115 (patch)
tree48eecc1c369fc6c7f0bf0c557cb4beef76f27867 /src/gui
parent3111f3c31627466d35317cceeb535c7679f4d3fa (diff)
downloadQt-711f3691231ede6d8bf4e04f4dd8eb528655e115.zip
Qt-711f3691231ede6d8bf4e04f4dd8eb528655e115.tar.gz
Qt-711f3691231ede6d8bf4e04f4dd8eb528655e115.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
Diffstat (limited to 'src/gui')
-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 54b9dcd..bcc9cfd 100644
--- a/src/gui/kernel/qwidget_wince.cpp
+++ b/src/gui/kernel/qwidget_wince.cpp
@@ -193,7 +193,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;