diff options
author | Sami Merila <sami.merila@nokia.com> | 2011-03-15 09:54:30 (GMT) |
---|---|---|
committer | Sami Merila <sami.merila@nokia.com> | 2011-03-15 09:54:30 (GMT) |
commit | 7480f77039bf104c0b9a0763898038ce988dc4b3 (patch) | |
tree | 6d57aa4bf96ef86176dac3a760e858c20803f55b | |
parent | d919343e91fd5e6771f11cb59d4730ec83ed7381 (diff) | |
download | Qt-7480f77039bf104c0b9a0763898038ce988dc4b3.zip Qt-7480f77039bf104c0b9a0763898038ce988dc4b3.tar.gz Qt-7480f77039bf104c0b9a0763898038ce988dc4b3.tar.bz2 |
Regression: QS60Style: Theme background is incorrect
Fix for QTBUG-16816 cause theme background to display incorrectly
after a layout switch is done. Theme background is shown "tiled"
instead of being whole screen size.
This is because the setBackgroundTexture() call was removed to "save"
QPixmap creation. Unfortunately, it really skips the background
texture creation, but does not re-create a new one for the new layout,
so portrait background is used again. This leads to tiling the image.
Let's just return the call to the setBackgroundTexture()
(this will eventually anyway be "optimized" with fix for QTBUG-14910).
Task-number: QTBUG-17930
Reviewed-by: Laszlo Agocs
-rw-r--r-- | src/gui/styles/qs60style_s60.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/styles/qs60style_s60.cpp b/src/gui/styles/qs60style_s60.cpp index b4785dc..8e442bf 100644 --- a/src/gui/styles/qs60style_s60.cpp +++ b/src/gui/styles/qs60style_s60.cpp @@ -1428,6 +1428,7 @@ QS60Style::QS60Style() void QS60StylePrivate::handleDynamicLayoutVariantSwitch() { clearCaches(QS60StylePrivate::CC_LayoutChange); + setBackgroundTexture(qApp); setActiveLayout(); foreach (QWidget *widget, QApplication::allWidgets()) widget->ensurePolished(); |