summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorSami Merilä <sami.merila@nokia.com>2009-05-08 14:08:44 (GMT)
committerSami Merilä <sami.merila@nokia.com>2009-05-08 14:08:44 (GMT)
commit6cb7e9cbc2cfba28d5b09ba90433a98628360191 (patch)
treef0c8a870f00417148af27fb0a9a4a8b37ae52edc /src/gui
parent60f583e0934a8f1cb7eb4b6a378c827944d4178a (diff)
downloadQt-6cb7e9cbc2cfba28d5b09ba90433a98628360191.zip
Qt-6cb7e9cbc2cfba28d5b09ba90433a98628360191.tar.gz
Qt-6cb7e9cbc2cfba28d5b09ba90433a98628360191.tar.bz2
S60Style: regression fix. Fallback graphics were broken with last change to s60style, the correct mbm-file was never referred.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/styles/qs60style_symbian.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/styles/qs60style_symbian.cpp b/src/gui/styles/qs60style_symbian.cpp
index cd29e26..2ba6112 100644
--- a/src/gui/styles/qs60style_symbian.cpp
+++ b/src/gui/styles/qs60style_symbian.cpp
@@ -93,7 +93,7 @@ private:
static void unCompressBitmapL(const TRect& aTrgRect, CFbsBitmap* aTrgBitmap, CFbsBitmap* aSrcBitmap);
static void colorGroupAndIndex(QS60StyleEnums::SkinParts skinID,
TAknsItemID &colorGroup, int colorIndex);
- static TDesC mapFallBackFileName(const int fileID);
+ static const TDesC& mapFallBackFileName(const int fileID);
static bool checkSupport(const int supportedRelease);
static TAknsItemID checkAndUpdateReleaseSpecificGraphics(int part);
// Array to match the skin ID, fallback graphics and Qt widget graphics.
@@ -354,14 +354,14 @@ QPixmap QS60StyleModeSpecifics::colorSkinnedGraphics(
return error ? QPixmap() : colorGraphics;
}
-TDesC QS60StyleModeSpecifics::mapFallBackFileName(const int fileID)
+const TDesC& QS60StyleModeSpecifics::mapFallBackFileName(const int fileID)
{
switch(fileID){
case ELastMbm:
- return KNullDesC;
+ return KNullDesC();
case EAvkonMbm:
default:
- return KAvkonBitmapFile;
+ return KAvkonBitmapFile();
}
}
@@ -371,7 +371,7 @@ QPixmap QS60StyleModeSpecifics::colorSkinnedGraphicsL(
{
const int stylepartIndex = (int)stylepart;
const TAknsItemID skinId = m_partMap[stylepartIndex].skinID;
- const TDesC fallbackFileName = mapFallBackFileName(m_fallbackMap[stylepartIndex].fallbackGraphicID);
+ const TDesC& fallbackFileName = mapFallBackFileName(m_fallbackMap[stylepartIndex].fallbackGraphicID);
const TInt fallbackGraphicID =
(fallbackFileName!=KNullDesC) ? m_fallbackMap[stylepartIndex].fallbackGraphicID : KErrNotFound;
@@ -536,7 +536,7 @@ QPixmap QS60StyleModeSpecifics::createSkinnedGraphicsL(
switch (drawType) {
case EDrawIcon:
{
- const TDesC fallbackFileName = mapFallBackFileName(m_fallbackMap[stylepartIndex].fallbackGraphicID);
+ const TDesC& fallbackFileName = mapFallBackFileName(m_fallbackMap[stylepartIndex].fallbackGraphicID);
const TInt fallbackGraphicID =
(fallbackFileName!=KNullDesC) ? m_fallbackMap[stylepartIndex].fallbackGraphicID : KErrNotFound;