// 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 {