diff options
author | Jonathan Liu <net147@gmail.com> | 2012-09-03 13:52:46 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-03 14:49:22 (GMT) |
commit | d8cc750c58d6e710c821868a2456c2b0a8b0dbbc (patch) | |
tree | f1656094a47437dae8238177778be278c36f7eaa /src/gui/painting | |
parent | 6265ac63fe85e1ff8b2d9ca3d023b3a1a8b281f0 (diff) | |
download | Qt-d8cc750c58d6e710c821868a2456c2b0a8b0dbbc.zip Qt-d8cc750c58d6e710c821868a2456c2b0a8b0dbbc.tar.gz Qt-d8cc750c58d6e710c821868a2456c2b0a8b0dbbc.tar.bz2 |
QWizard/Win: Fix incorrect cached state after all wizards destroyed
If a QWizard is shown when Aero is enabled, the current visual style is
cached in a static member of QVistaHelper. The cached state is updated
by QVistaHelper when it receives WM_THEMECHANGED or
WM_DWMCOMPOSITIONCHANGED events from Windows.
If all QWizard instances are destroyed, there are no instances of
QVistaHelper to receive these notifications and update the cache. If
Aero is now disabled, the cached current visual style in QVistaHelper
isn't updated. If a wizard is now created and shown, a large black
rectangle is shown in the titlebar.
A static instance count is added so that when no wizards are running,
the cached state is not used.
Task-number: QTBUG-27004
Change-Id: Iefe4c8552388280219c9726418ed7476b8ebb15a
(cherry picked from commit 952ea029f40aaff9de0101fc165907ef8693e4aa)
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/gui/painting')
0 files changed, 0 insertions, 0 deletions