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 ede66996 authored by Laurent Montel's avatar Laurent Montel 😁

Start to add support for external logo/picture from contact

parent 4e94dc0f
......@@ -86,6 +86,10 @@ class ContactViewer::Private
mBrowser->document()->addResource( QTextDocument::ImageResource,
QUrl( QLatin1String( "contact_photo" ) ),
mCurrentContact.photo().data() );
} else if (!mCurrentContact.photo().url().isEmpty()) {
mBrowser->document()->addResource( QTextDocument::ImageResource,
QUrl( QLatin1String( "contact_photo" ) ),
defaultPixmap );
} else {
mBrowser->document()->addResource( QTextDocument::ImageResource,
QUrl( QLatin1String( "contact_photo" ) ),
......@@ -96,6 +100,8 @@ class ContactViewer::Private
mBrowser->document()->addResource( QTextDocument::ImageResource,
QUrl( QLatin1String( "contact_logo" ) ),
mCurrentContact.logo().data() );
} else if (!mCurrentContact.logo().url().isEmpty()) {
//TODO
}
mBrowser->document()->addResource( QTextDocument::ImageResource,
......
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