src/hbcore/image/hbicon.cpp
changeset 2 06ff229162e9
parent 1 f7ac710697a9
child 3 11d3954df52a
--- a/src/hbcore/image/hbicon.cpp	Mon May 03 12:48:33 2010 +0300
+++ b/src/hbcore/image/hbicon.cpp	Fri May 14 16:09:54 2010 +0300
@@ -809,7 +809,8 @@
 
 /*!
 * Equality operator. It compares the icon names for all the state and mode combinations.
-* The sizes set for the icons are not used for the comparison.
+* It also compares the badges, the color and the mirroring mode of the icon. The sizes 
+* set for the icons are not used for the comparison.
 */
 bool HbIcon::operator==( const HbIcon &other ) const
 {
@@ -818,7 +819,8 @@
 
 /*!
 * Inequality operator. It compares the icon names for all the state and mode combinations.
-* The sizes set for the icons are not used for the comparison.
+* It also compares the badges, the color and the mirroring mode of the icon. The sizes 
+* set for the icons are not used for the comparison.
 */
 bool HbIcon::operator!=( const HbIcon &other ) const
 {
@@ -859,10 +861,16 @@
         return true;
     }
 
-    if ( engine1->color() != engine2->color() )
+    if ( engine1->color() != engine2->color() ){
         return true;
-    else
-        return false;
+    }
+
+    // two icons are considered different if their mirroring modes are different
+    if ( engine1->mirroringMode() != engine2->mirroringMode() ){
+        return true;
+    }
+
+    return false;
 }
 
 /*!