qtmobility/src/messaging/qmessageaccountid_maemo.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
--- a/qtmobility/src/messaging/qmessageaccountid_maemo.cpp	Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/src/messaging/qmessageaccountid_maemo.cpp	Mon May 03 13:18:40 2010 +0300
@@ -41,6 +41,8 @@
 #include "qmessageaccountid.h"
 #include "qmessageaccountid_p.h"
 
+#include <qhash.h>
+
 QTM_BEGIN_NAMESPACE
 
 QMessageAccountId::QMessageAccountId()
@@ -99,10 +101,10 @@
     long left = 0;
     long right = 0;
     if (d_ptr) {
-        left = d_ptr->_id.toLong();
+        left = qHash(d_ptr->_id);
     }
     if (other.d_ptr) {
-        right = other.d_ptr->_id.toLong();
+        right = qHash(other.d_ptr->_id);
     }
 
     return (left < right);
@@ -124,7 +126,7 @@
 
 uint qHash(const QMessageAccountId &id)
 {
-    //TODO: return qHash(id.toString());
+    return qHash(id.toString());
 }
 
 QTM_END_NAMESPACE