diff options
author | Jason Barron <jbarron@trolltech.com> | 2009-09-23 13:50:49 (GMT) |
---|---|---|
committer | Jason Barron <jbarron@trolltech.com> | 2009-09-23 13:58:01 (GMT) |
commit | aed412fd14e39a356a886c5a472ceade3da56d13 (patch) | |
tree | abc98e396f553ee4888bc40db7cba4a8cce7a1b6 /src | |
parent | 9d552fbf54a25b4bab7fff8a150ab0d03d524983 (diff) | |
download | Qt-aed412fd14e39a356a886c5a472ceade3da56d13.zip Qt-aed412fd14e39a356a886c5a472ceade3da56d13.tar.gz Qt-aed412fd14e39a356a886c5a472ceade3da56d13.tar.bz2 |
Avoid calling ensureContext() in setGeometry.
We can delay calling ensureContext() since it will happen when painting
begins anyway. There is a chance that we can get to this function when
a window is being hidden and if this is the first thing that happens in
the application, there is no need to call ensureContext() yet.
Reviewed-by: Rhys Weatherley
Diffstat (limited to 'src')
-rw-r--r-- | src/openvg/qwindowsurface_vg.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/openvg/qwindowsurface_vg.cpp b/src/openvg/qwindowsurface_vg.cpp index 1997ee8..6cc2e27 100644 --- a/src/openvg/qwindowsurface_vg.cpp +++ b/src/openvg/qwindowsurface_vg.cpp @@ -85,7 +85,6 @@ void QVGWindowSurface::flush(QWidget *widget, const QRegion ®ion, const QPoin void QVGWindowSurface::setGeometry(const QRect &rect) { QWindowSurface::setGeometry(rect); - d_ptr->ensureContext(window()); } bool QVGWindowSurface::scroll(const QRegion &area, int dx, int dy) |