diff options
author | Maurice Kalinowski <maurice.kalinowski@nokia.com> | 2009-05-13 06:52:16 (GMT) |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@nokia.com> | 2009-05-13 06:52:16 (GMT) |
commit | 23a76927148ef6e2bf6aed6c894e23e838f763e6 (patch) | |
tree | 59c0050b7722428aca7c581d9b9018620b79da3a /src/gui/kernel/qwidget_wince.cpp | |
parent | dde94b1737e9860838c87d3f432cf76de3157ad7 (diff) | |
download | Qt-23a76927148ef6e2bf6aed6c894e23e838f763e6.zip Qt-23a76927148ef6e2bf6aed6c894e23e838f763e6.tar.gz Qt-23a76927148ef6e2bf6aed6c894e23e838f763e6.tar.bz2 |
fix wince build
in 4ffda2918b3f5c789ef325cdeaac72e5e7ef2c0c savedFlags has been made
crossplatform by switching from ulong to Qt::WindowFlags. WinCE does
not have an automatic conversion between those types, thus bails out
with an error. Need to cast it to the proper type.
Reviewed-by: Marius Storm-Olsen
Diffstat (limited to 'src/gui/kernel/qwidget_wince.cpp')
-rw-r--r-- | src/gui/kernel/qwidget_wince.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_wince.cpp b/src/gui/kernel/qwidget_wince.cpp index 0ed40fa..435fd31 100644 --- a/src/gui/kernel/qwidget_wince.cpp +++ b/src/gui/kernel/qwidget_wince.cpp @@ -535,7 +535,7 @@ void QWidget::setWindowState(Qt::WindowStates newstate) if (newstate & Qt::WindowFullScreen) { if (d->topData()->normalGeometry.width() < 0 && !(oldstate & Qt::WindowMaximized)) d->topData()->normalGeometry = geometry(); - d->topData()->savedFlags = GetWindowLongA(internalWinId(), GWL_STYLE); + d->topData()->savedFlags = (Qt::WindowFlags) GetWindowLongA(internalWinId(), GWL_STYLE); UINT style = WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_POPUP; if (isVisible()) style |= WS_VISIBLE; |