Changeset View
Changeset View
Standalone View
Standalone View
resources/kolab/pimkolab/conversion/kcalconversion.cpp
Show First 20 Lines • Show All 385 Lines • ▼ Show 20 Line(s) | 379 | foreach (const KCalCore::Attachment::Ptr &ptr, e.attachments()) { | |||
---|---|---|---|---|---|
386 | a.setLabel(toStdString(ptr->label())); | 386 | a.setLabel(toStdString(ptr->label())); | ||
387 | attachments.push_back(a); | 387 | attachments.push_back(a); | ||
388 | } | 388 | } | ||
389 | i.setAttachments(attachments); | 389 | i.setAttachments(attachments); | ||
390 | 390 | | |||
391 | std::vector<Kolab::CustomProperty> customProperties; | 391 | std::vector<Kolab::CustomProperty> customProperties; | ||
392 | const QMap<QByteArray, QString> &props = e.customProperties(); | 392 | const QMap<QByteArray, QString> &props = e.customProperties(); | ||
393 | for (QMap<QByteArray, QString>::const_iterator it = props.begin(), end(props.end()); it != end; ++it) { | 393 | for (QMap<QByteArray, QString>::const_iterator it = props.begin(), end(props.end()); it != end; ++it) { | ||
394 | QString key(it.key()); | 394 | QString key(QString::fromUtf8(it.key())); | ||
395 | if (key == QLatin1String(CUSTOM_KOLAB_URL)) { | 395 | if (key == QLatin1String(CUSTOM_KOLAB_URL)) { | ||
396 | continue; | 396 | continue; | ||
397 | } | 397 | } | ||
398 | customProperties.push_back(Kolab::CustomProperty(toStdString(key.remove(QStringLiteral("X-KOLAB-"))), toStdString(it.value()))); | 398 | customProperties.push_back(Kolab::CustomProperty(toStdString(key.remove(QStringLiteral("X-KOLAB-"))), toStdString(it.value()))); | ||
399 | } | 399 | } | ||
400 | i.setCustomProperties(customProperties); | 400 | i.setCustomProperties(customProperties); | ||
401 | } | 401 | } | ||
402 | 402 | | |||
▲ Show 20 Lines • Show All 453 Lines • Show Last 20 Lines |