summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-17 14:33:25 (GMT)
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-17 14:33:25 (GMT)
commitd8ddf49c5ba7b45ad90e6ca99eda1d150fd37027 (patch)
treeaeaa628cfb4b81d27b278a0b888f9fc581bd65c3 /src/gui
parent25025d7ace4b067e6648149e81e8dd0468388739 (diff)
downloadQt-d8ddf49c5ba7b45ad90e6ca99eda1d150fd37027.zip
Qt-d8ddf49c5ba7b45ad90e6ca99eda1d150fd37027.tar.gz
Qt-d8ddf49c5ba7b45ad90e6ca99eda1d150fd37027.tar.bz2
fix WA_DontShowOnScreen bug on Windows CE
We must not retrieve the initial window geometry for WA_DontShowOnScreen widgets with GetClientRect. 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 4090b74..d33f5ee 100644
--- a/src/gui/kernel/qwidget_wince.cpp
+++ b/src/gui/kernel/qwidget_wince.cpp
@@ -332,7 +332,7 @@ void QWidgetPrivate::create_sys(WId window, bool initializeWindow, bool destroyO
if (desktop) {
q->setAttribute(Qt::WA_WState_Visible);
- } else if (topLevel) {
+ } else if (topLevel && !q->testAttribute(Qt::WA_DontShowOnScreen)) {
RECT cr;
GetClientRect(id, &cr);
// one cannot trust cr.left and cr.top, use a correction POINT instead