summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorSami Merila <sami.merila@nokia.com>2010-11-09 10:53:07 (GMT)
committerSami Merila <sami.merila@nokia.com>2010-11-09 10:53:07 (GMT)
commit0870d766b9e302081ba31a9c8f6dfa3a1e8c1e52 (patch)
tree095014c5ff6511d7d0e18160afd788ba9709e22d /src/gui
parentd50fb14395e8ea35d09bdfc8bb420f051b6c140a (diff)
downloadQt-0870d766b9e302081ba31a9c8f6dfa3a1e8c1e52.zip
Qt-0870d766b9e302081ba31a9c8f6dfa3a1e8c1e52.tar.gz
Qt-0870d766b9e302081ba31a9c8f6dfa3a1e8c1e52.tar.bz2
QS60Style: Color calculation should be optimized
Addendum to the previous fix. Remove trailing white space as well. Task-number: QTBUG-14860 Reviewed-by: Jani Hautakangas
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/styles/qs60style_p.h2
-rw-r--r--src/gui/styles/qs60style_s60.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/styles/qs60style_p.h b/src/gui/styles/qs60style_p.h
index 7a7991a..db4285d 100644
--- a/src/gui/styles/qs60style_p.h
+++ b/src/gui/styles/qs60style_p.h
@@ -527,7 +527,7 @@ public:
static void deleteStoredSettings();
// calculates average color based on theme graphics (minus borders).
QColor colorFromFrameGraphics(SkinFrameElements frame) const;
-#endif
+#endif
QColor calculatedColor(SkinFrameElements frame) const;
//set theme palette for application
diff --git a/src/gui/styles/qs60style_s60.cpp b/src/gui/styles/qs60style_s60.cpp
index 204699d..7b75d40 100644
--- a/src/gui/styles/qs60style_s60.cpp
+++ b/src/gui/styles/qs60style_s60.cpp
@@ -709,7 +709,7 @@ void QS60StylePrivate::deleteStoredSettings()
QColor QS60StylePrivate::colorFromFrameGraphics(SkinFrameElements frame) const
{
#ifndef QT_NO_SETTINGS
- TInt themeID = 0;
+ TInt themeID = 0;
//First we need to fetch active theme ID. We need to store the themeID at the same time
//as color, so that we can later check if the stored color is still from the same theme.
//Native side stores active theme UID/Timestamp into central repository.
@@ -718,13 +718,13 @@ QColor QS60StylePrivate::colorFromFrameGraphics(SkinFrameElements frame) const
CRepository *themeRepository = CRepository::NewLC(personalisationUID);
if (themeRepository) {
static const TInt KThemePkgIDDesSize = 23; //size of the stored theme package ID
- TBuf<32> value; //themeID is currently max of 8 + 1 + 8 characters, but lets have some extra space
+ TBuf<32> value; //themeID is currently max of 8 + 1 + 8 characters, but lets have some extra space
const TUint32 key = 0x00000002; //active theme key in the repository
error = themeRepository->Get(key, value);
if (error == KErrNone) {
- TLex lex(value);
+ TLex lex(value);
TPtrC numberToken(lex.NextToken());
- if(numberToken.Length())
+ if (numberToken.Length())
error = TLex(numberToken).Val(themeID);
else
error = KErrArgument;