summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-17 16:33:25 +0200
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-17 16:33:25 +0200
commitd8ddf49c5ba7b45ad90e6ca99eda1d150fd37027 (patch)
treeaeaa628cfb4b81d27b278a0b888f9fc581bd65c3
parent25025d7ace4b067e6648149e81e8dd0468388739 (diff)
fix WA_DontShowOnScreen bug on Windows CE
We must not retrieve the initial window geometry for WA_DontShowOnScreen widgets with GetClientRect. 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 4090b741d..d33f5ee38 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