summaryrefslogtreecommitdiffstats
path: root/src/activeqt/container/qaxwidget.cpp
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-09-01 09:55:30 (GMT)
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-09-01 09:57:01 (GMT)
commit9aa88cf3d15bf7ed6d3faf03ebe9fd574e1667ec (patch)
tree1d18a261e7c08713f8ab1a80102c48e6ebb456f4 /src/activeqt/container/qaxwidget.cpp
parent150c14bc50d28d2e6c768ff00654f527cb226812 (diff)
downloadQt-9aa88cf3d15bf7ed6d3faf03ebe9fd574e1667ec.zip
Qt-9aa88cf3d15bf7ed6d3faf03ebe9fd574e1667ec.tar.gz
Qt-9aa88cf3d15bf7ed6d3faf03ebe9fd574e1667ec.tar.bz2
Fix compile error for WinCE
Do not use LockWindowUpdate() in Win CE Reviewed-by: Trust Me
Diffstat (limited to 'src/activeqt/container/qaxwidget.cpp')
-rw-r--r--src/activeqt/container/qaxwidget.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/activeqt/container/qaxwidget.cpp b/src/activeqt/container/qaxwidget.cpp
index 22e7a82..94f85a5 100644
--- a/src/activeqt/container/qaxwidget.cpp
+++ b/src/activeqt/container/qaxwidget.cpp
@@ -1437,7 +1437,9 @@ extern Q_GUI_EXPORT bool qt_win_ignoreNextMouseReleaseEvent;
HRESULT WINAPI QAxClientSite::EnableModeless(BOOL fEnable)
{
+#if !defined(Q_OS_WINCE)
LockWindowUpdate(host->window()->winId());
+#endif
EnableWindow(host->window()->winId(), fEnable);
if (!fEnable) {
@@ -1448,8 +1450,9 @@ HRESULT WINAPI QAxClientSite::EnableModeless(BOOL fEnable)
QApplicationPrivate::leaveModal(host);
}
qt_win_ignoreNextMouseReleaseEvent = false;
+#if !defined(Q_OS_WINCE)
LockWindowUpdate(0);
-
+#endif
return S_OK;
}