diff options
author | Sami Merila <sami.merila@nokia.com> | 2011-06-29 11:36:09 (GMT) |
---|---|---|
committer | Sami Merila <sami.merila@nokia.com> | 2011-06-29 11:36:09 (GMT) |
commit | 2197b8be6003ad3d0071564afb7080650202661b (patch) | |
tree | 57b783565a2cac02ab5a714cd803b7b0f0773127 /src/opengl/qwindowsurface_x11gl_p.h | |
parent | 177f466bc581f8ad5bd4e883e8bc342a0b6c7484 (diff) | |
download | Qt-2197b8be6003ad3d0071564afb7080650202661b.zip Qt-2197b8be6003ad3d0071564afb7080650202661b.tar.gz Qt-2197b8be6003ad3d0071564afb7080650202661b.tar.bz2 |
Fix QWidget::palettePropagation2() autotest on Symbian
Autotest fails since calling QApplication::setPalette() clears away
QPalette hash (class specific palette information). QS60Style tries
to re-set theme-specific hash after updating application palette with
real theme background, but does not take into account that application
might have defined own custom palette hash data.
As a fix, store the previously set palette hash information and restore
it after calling QApplication::setPalette(). Additionally, remove the
palette change event sending, since QApplication will post that event
anyway when palette is updated.
Task-number: QT-5011
Reviewed-by: Miikka Heikkinen
Diffstat (limited to 'src/opengl/qwindowsurface_x11gl_p.h')
0 files changed, 0 insertions, 0 deletions