Commit 982da20a authored by Laurent Montel's avatar Laurent Montel 😁

Try to implement vcard4 support for logo not success yet

parent 02502f62
......@@ -1404,9 +1404,13 @@ VCardLine VCardTool::createPicture(const QString &identifier, const Picture &pic
if (version == VCard::v2_1) {
line.addParameter(QStringLiteral("ENCODING"), QStringLiteral("BASE64"));
line.addParameter(pic.type(), QString());
} else {
} else /*if (version == VCard::v3_0) */ {
line.addParameter(QStringLiteral("encoding"), QStringLiteral("b"));
line.addParameter(QStringLiteral("type"), pic.type());
#if 0
} else { //version 4.0
line.addParameter(QStringLiteral("data") + QStringLiteral(":image/") + pic.type(), QStringLiteral("base64"));
#endif
}
} else {
line.setValue(pic.url());
......
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