summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowscontext.h
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2012-10-23 16:25:47 +0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-25 14:10:04 +0200
commitc4109fe10370b7b27b22ddc9db4286db34ea9c4e (patch)
tree05d0d9880cb703e41d5068383ac07eb68d86b108 /src/plugins/platforms/windows/qwindowscontext.h
parent52ccbd8911f1b96b8bea6a4c9da4d4a762dee2a7 (diff)
Fix crash when handling WM_PAINT during COM operations
Synchronous expose corrupts painter state if it is done during existing paint operation, which can happen e.g. when requesting some value from dumpcpp generated wrapper inside a slot. Fixed by implementing support for setting asynchronous expose and doing expose according to the setting in handleWmPaint(). Task-number: QTBUG-27209 Change-Id: I89b5aa823fda947d26b1a4757f129e7c31ea408b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowscontext.h')
-rw-r--r--src/plugins/platforms/windows/qwindowscontext.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowscontext.h b/src/plugins/platforms/windows/qwindowscontext.h
index ef48a52e07..21a846ef97 100644
--- a/src/plugins/platforms/windows/qwindowscontext.h
+++ b/src/plugins/platforms/windows/qwindowscontext.h
@@ -184,6 +184,8 @@ public:
#endif
static QByteArray comErrorString(HRESULT hr);
+ bool asyncExpose() const;
+ void setAsyncExpose(bool value);
private:
void handleFocusEvent(QtWindows::WindowsEventType et, QWindowsWindow *w);