src/hbcore/image/hbbadgeicon.cpp
changeset 5 627c4a0fd0e7
parent 0 16d8024aca5e
child 7 923ff622b8b9
--- a/src/hbcore/image/hbbadgeicon.cpp	Thu May 27 13:10:59 2010 +0300
+++ b/src/hbcore/image/hbbadgeicon.cpp	Fri Jun 11 13:58:22 2010 +0300
@@ -23,9 +23,9 @@
 **
 ****************************************************************************/
 
+#include "hbbadgeicon_p.h"
 #include "hbicon.h"
 #include "hbbadgeiconinfo_p.h"
-#include "hbbadgeicon_p.h"
 #include <QPainter>
 
 /*!
@@ -79,12 +79,11 @@
     int size = mBadgeIcons.size();
     if (size == 0) {
         mBadgeIcons.append(info);
-    }
-    else {
+    } else {
         bool added = false;
         //Find a spot to insert the badgeinfo in the list.
-        for (int i = size - 1; i >= 0; i--){
-            if (mBadgeIcons[i].zValue() > zValue){
+        for (int i = size - 1; i >= 0; i--) {
+            if (mBadgeIcons[i].zValue() > zValue) {
                 mBadgeIcons.insert(i + 1, info);
                 added = true;
                 break;
@@ -147,7 +146,7 @@
   Paint all badges in z-order.
 */
 void HbBadgeIcon::paint(QPainter *painter,
-                        const QRectF& rect,
+                        const QRectF &rect,
                         QIcon::Mode mode,
                         QIcon::State state,
                         bool mirror)
@@ -170,18 +169,18 @@
         }
         // ... and then draw at the specified location.
         aIcon.icon().paint(painter,
-                 rect,
-                 Qt::KeepAspectRatio,
-                 absAlign,
-                 mode,
-                 state);
+                           rect,
+                           Qt::KeepAspectRatio,
+                           absAlign,
+                           mode,
+                           state);
     }
 }
 
 /*!
   \internal
  */
-void HbBadgeIcon::externalize(QDataStream& stream)
+void HbBadgeIcon::externalize(QDataStream &stream)
 {
     int size = mBadgeIcons.size();
     // Write out how many badges we'll save first
@@ -199,11 +198,11 @@
 /*!
 \Internal
 */
-void HbBadgeIcon::internalize(QDataStream& stream)
+void HbBadgeIcon::internalize(QDataStream &stream)
 {
     int howManyBadges;
     stream >> howManyBadges;
-    for (int i = 0; i<howManyBadges; ++i) {
+    for (int i = 0; i < howManyBadges; ++i) {
         qint32 align;
         qint32 zValue;
         HbIcon icon;