diff options
author | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2009-09-01 08:31:37 (GMT) |
---|---|---|
committer | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2009-09-01 08:53:31 (GMT) |
commit | a985aaccfcaf2e24b7094875f2e6f51d80c45997 (patch) | |
tree | dfa82935db6604946dc1541bbfef7fcd79189189 | |
parent | f39ead322f7b2e485cc6767b609eb5bc8a10b0ea (diff) | |
download | Qt-a985aaccfcaf2e24b7094875f2e6f51d80c45997.zip Qt-a985aaccfcaf2e24b7094875f2e6f51d80c45997.tar.gz Qt-a985aaccfcaf2e24b7094875f2e6f51d80c45997.tar.bz2 |
Reduce the flickering caused by QAxClientSite::EnableModeless
Lock the updates during this call from the activex control.
Task-number: 257593
Reviewed-by: Trust Me
-rw-r--r-- | src/activeqt/container/qaxwidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/activeqt/container/qaxwidget.cpp b/src/activeqt/container/qaxwidget.cpp index 621c836..22e7a82 100644 --- a/src/activeqt/container/qaxwidget.cpp +++ b/src/activeqt/container/qaxwidget.cpp @@ -1437,6 +1437,7 @@ extern Q_GUI_EXPORT bool qt_win_ignoreNextMouseReleaseEvent; HRESULT WINAPI QAxClientSite::EnableModeless(BOOL fEnable) { + LockWindowUpdate(host->window()->winId()); EnableWindow(host->window()->winId(), fEnable); if (!fEnable) { @@ -1447,6 +1448,7 @@ HRESULT WINAPI QAxClientSite::EnableModeless(BOOL fEnable) QApplicationPrivate::leaveModal(host); } qt_win_ignoreNextMouseReleaseEvent = false; + LockWindowUpdate(0); return S_OK; } |