Commit c85d85b2a63cdbcf607789ed94ab5e4ac7ee560d

Background in landscape mode on S60 5.0 is broken

After initial fix, 99% of widgets draw temselves properly after
orientation switch. However, QScrollAreas lose their palette hash,
which causes scrollarea background to re-start from theme background
top-left.

As a correction, we re-set the theme palette hash after calling
QApplication::setPalette, since that clears palette hash.

Task-number: QTBUG-6125
Reviewed-by: Alessandro Portale
src/gui/styles/qs60style.cpp
(1 / 0)
  
471471 applicationPalette.setBrush(QPalette::Window, backgroundTexture());
472472 setThemePalette(&applicationPalette);
473473 QApplication::setPalette(applicationPalette);
474 setThemePaletteHash(&applicationPalette);
474475}
475476
476477void QS60StylePrivate::deleteBackground()

Comments

Add a new comment:

Login or create an account to post a comment

Add your comment