summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qs60style_s60.cpp
diff options
context:
space:
mode:
authorSami Merila <sami.merila@nokia.com>2011-06-15 10:02:00 (GMT)
committerSami Merila <sami.merila@nokia.com>2011-06-15 10:02:00 (GMT)
commite4c8505946debcb66f50e92c1441cbc77da60dd2 (patch)
treec3663c322446458b898f7135b1ca959cb001eed4 /src/gui/styles/qs60style_s60.cpp
parentfcfc19878a0a1a48194a786bba64da11606077d2 (diff)
downloadQt-e4c8505946debcb66f50e92c1441cbc77da60dd2.zip
Qt-e4c8505946debcb66f50e92c1441cbc77da60dd2.tar.gz
Qt-e4c8505946debcb66f50e92c1441cbc77da60dd2.tar.bz2
QS60Style: QGroupBox is drawn as white box in upcoming Symbian release
New Symbian root theme defines KAknsIIDQsnFrSetOpt as empty. Drawing the frame through native API produces white box. Since the frame is no longer used on the native side, skip drawing it from style. Task-number: QTBUG-19782 Reviewed-by: Tomi Vihria
Diffstat (limited to 'src/gui/styles/qs60style_s60.cpp')
-rw-r--r--src/gui/styles/qs60style_s60.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/styles/qs60style_s60.cpp b/src/gui/styles/qs60style_s60.cpp
index e0897f0..4018702 100644
--- a/src/gui/styles/qs60style_s60.cpp
+++ b/src/gui/styles/qs60style_s60.cpp
@@ -1095,6 +1095,14 @@ void QS60StyleModeSpecifics::frameIdAndCenterId(QS60StylePrivate::SkinFrameEleme
centerId.Set(KAknsIIDQsnFrPopupCenterSubmenu);
frameId.Set(KAknsIIDQsnFrPopupSub);
break;
+ case QS60StylePrivate::SF_SettingsList:
+ // Starting from S60_5_3, the root theme has been changed so that KAknsIIDQsnFrSetOpt is empty.
+ // Set the theme ID to None, to avoid theme server trying to draw the empty frame.
+ if (QSysInfo::s60Version() > QSysInfo::SV_S60_5_2) {
+ centerId.Set(KAknsIIDNone);
+ frameId.Set(KAknsIIDNone);
+ }
+ break;
case QS60StylePrivate::SF_PanelBackground:
// remove center piece for panel graphics, so that only border is drawn
centerId.Set(KAknsIIDNone);