src/hbcore/image/hbbadgeiconinfo.cpp
changeset 5 627c4a0fd0e7
parent 0 16d8024aca5e
child 7 923ff622b8b9
--- a/src/hbcore/image/hbbadgeiconinfo.cpp	Thu May 27 13:10:59 2010 +0300
+++ b/src/hbcore/image/hbbadgeiconinfo.cpp	Fri Jun 11 13:58:22 2010 +0300
@@ -23,21 +23,19 @@
 **
 ****************************************************************************/
 
+#include "hbbadgeiconinfo_p.h"
 #include "hbicon.h"
-#include "hbbadgeiconinfo_p.h"
 #include "hbbadgeicon_p.h"
 #include <QPainter>
-
 #include <QDebug>
 
-
-HbBadgeIconInfo::HbBadgeIconInfo(const HbIcon& badge,
+HbBadgeIconInfo::HbBadgeIconInfo(const HbIcon &badge,
                                  Qt::Alignment alignment,
-                                 int zValue): mIcon(badge),mAlignment(alignment),mZValue(zValue)
+                                 int zValue): mIcon(badge), mAlignment(alignment), mZValue(zValue)
 {
 }
 
-HbBadgeIconInfo::HbBadgeIconInfo(const HbBadgeIconInfo& other)
+HbBadgeIconInfo::HbBadgeIconInfo(const HbBadgeIconInfo &other)
 {
     *this = other;
 }
@@ -46,18 +44,17 @@
 {
 }
 
-bool HbBadgeIconInfo::operator==(const HbBadgeIconInfo &other)
+bool HbBadgeIconInfo::operator==(const HbBadgeIconInfo &other) const
 {
     return !(*this != other);
 }
 
-bool HbBadgeIconInfo::operator!=(const HbBadgeIconInfo &other)
+bool HbBadgeIconInfo::operator!=(const HbBadgeIconInfo &other) const
 {
     if ((icon() != other.icon()) ||
-        (zValue() != other.zValue()) ||
-        (alignment() != other.alignment())
-       )
-    {
+            (zValue() != other.zValue()) ||
+            (alignment() != other.alignment())
+       ) {
         return true;
     }
 
@@ -69,7 +66,7 @@
     return mIcon;
 }
 
-void HbBadgeIconInfo::setIcon(const HbIcon& icon)
+void HbBadgeIconInfo::setIcon(const HbIcon &icon)
 {
     mIcon = icon;
 }
@@ -93,4 +90,3 @@
 {
     mAlignment = align;
 }
-