diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-10-12 09:33:10 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-10-12 09:33:10 (GMT) |
commit | b05b53cd90ef6dcbf6395ba991e0f848415136aa (patch) | |
tree | 3e65804779e09415e69172ffeb2cde62d6b54deb /src/gui/painting | |
parent | 1192782e688f04e6e0d86e7c311afe79eb04ab5b (diff) | |
parent | edddadd88950f22f6d813e50acdcf2711d3d5a84 (diff) | |
download | Qt-b05b53cd90ef6dcbf6395ba991e0f848415136aa.zip Qt-b05b53cd90ef6dcbf6395ba991e0f848415136aa.tar.gz Qt-b05b53cd90ef6dcbf6395ba991e0f848415136aa.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-s60-public into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-s60-public:
Add support for Qt::WA_TranslucentBackground with OpenVG on Symbian^3
Crash fix when using the runtime graphics system on Symbian.
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qwindowsurface_s60.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/painting/qwindowsurface_s60.cpp b/src/gui/painting/qwindowsurface_s60.cpp index 8bac1f5..ea19fcd 100644 --- a/src/gui/painting/qwindowsurface_s60.cpp +++ b/src/gui/painting/qwindowsurface_s60.cpp @@ -101,9 +101,11 @@ QS60WindowSurface::~QS60WindowSurface() // Issue empty redraw to clear the UI surface QWidget *w = window(); - RWindow *const window = static_cast<RWindow *>(w->winId()->DrawableWindow()); - window->BeginRedraw(); - window->EndRedraw(); + if (w->testAttribute(Qt::WA_WState_Created)) { + RWindow *const window = static_cast<RWindow *>(w->winId()->DrawableWindow()); + window->BeginRedraw(); + window->EndRedraw(); + } } } #endif |