Still trying with empty dummy image, no success. clear_user_avatar_image
authorSami Rämö <sami.ramo@ixonos.com>
Mon, 6 Sep 2010 07:34:59 +0000 (10:34 +0300)
committerSami Rämö <sami.ramo@ixonos.com>
Mon, 6 Sep 2010 07:34:59 +0000 (10:34 +0300)
src/situareservice/situareservice.cpp

index 3bd0c9b..ddbd0bd 100644 (file)
@@ -371,11 +371,11 @@ void SituareService::parseUserData(const QByteArray &jsonReply)
             // set unchanged profile images or add new images to imageUrlList for downloading
             if(m_user) {
                 if(m_user->profileImageUrl() != user.profileImageUrl()) {
-                    const QSize SIZE = QSize(1, 1);
-                    QPixmap pixmap(SIZE);
-                    QColor color(Qt::white);
-                    pixmap.fill(color);
-                    m_user->setProfileImage(pixmap);
+                    const QSize SIZE = QSize(50, 50);
+                    QImage image(SIZE, QImage::Format_ARGB32_Premultiplied);
+//                    QColor color(Qt::white);
+                    image.fill(0);
+                    m_user->setProfileImage(AvatarImage::create(QPixmap::fromImage(image), AvatarImage::Small));
                     if(!user.profileImageUrl().isEmpty())
                         imageUrlList.append(user.profileImageUrl());
                 } else {