Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 5543d57c authored by Laurent Montel's avatar Laurent Montel 😁

We need to update item

parent 30801f95
......@@ -78,8 +78,18 @@ void GravatarUpdateJob::setItem(const Akonadi::Item &item)
void GravatarUpdateJob::slotGravatarResolvUrlFinished(PimCommon::GravatarResolvUrlJob *job)
{
if (job) {
Q_EMIT gravatarPixmap(job->pixmap());
const QPixmap pix = job->pixmap();
Q_EMIT gravatarPixmap(pix);
if (mItem.isValid()) {
updatePixmap(pix);
return;
}
}
deleteLater();
}
void GravatarUpdateJob::updatePixmap(const QPixmap &pix)
{
//TODO
deleteLater();
}
......@@ -52,6 +52,7 @@ private Q_SLOTS:
void slotGravatarResolvUrlFinished(PimCommon::GravatarResolvUrlJob *job);
private:
void updatePixmap(const QPixmap &pix);
QString mEmail;
Akonadi::Item mItem;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment