added unit test for avatarimage
authorVille Tiensuu <ville.tiensuu@ixonos.com>
Thu, 3 Jun 2010 06:21:01 +0000 (09:21 +0300)
committerVille Tiensuu <ville.tiensuu@ixonos.com>
Thu, 3 Jun 2010 06:21:01 +0000 (09:21 +0300)
src/situareservice/situareservice.cpp
src/ui/avatarimage.cpp
tests/tests.pro

index b98140c..fcc4c4f 100644 (file)
@@ -369,7 +369,7 @@ void SituareService::parseUserData(const QByteArray &jsonReply)
 void SituareService::imageReceived(const QUrl &url, const QPixmap &image)
 {
     qDebug() << __PRETTY_FUNCTION__;
-    qDebug() << "Image URL: " << url << " size :" << image.size();    
+    qDebug() << "Image URL: " << url << " size :" << image.size();
 
     // assign facebook silhouette image to all who doesn't have a profile image
     if(url == QUrl(SILHOUETTE_URL)) {
index 6266c3f..12b21d4 100644 (file)
@@ -42,7 +42,7 @@ const int RIGHT_BORDER_WIDHT = 20; ///< Width of large profile image right borde
 
 QPixmap AvatarImage::create(const QPixmap &image, ImageHeight height)
 {
-    qWarning() << __PRETTY_FUNCTION__;
+    qDebug() << __PRETTY_FUNCTION__;
 
     if (height == Small) {
         QPixmap avatarImage = QPixmap(IMAGE_WIDTH, IMAGE_HEIGHT);
index 0b94bef..9ab0339 100644 (file)
@@ -9,4 +9,5 @@ SUBDIRS = map/mapengine \
           map/friendlocationitem \
           user \
           ui/friendlist \
-          ui/sidepanel
+          ui/sidepanel \
+          ui/avatarimage