Changeset View
Changeset View
Standalone View
Standalone View
plugins/messageviewer/bodypartformatter/vcard/text_vcard.cpp
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Line(s) | 78 | { | |||
---|---|---|---|---|---|
116 | static QString defaultPixmapPath = QLatin1String("file:///") + KIconLoader::global()->iconPath(QStringLiteral("user-identity"), KIconLoader::Desktop); | 116 | static QString defaultPixmapPath = QLatin1String("file:///") + KIconLoader::global()->iconPath(QStringLiteral("user-identity"), KIconLoader::Desktop); | ||
117 | static QString defaultMapIconPath = QLatin1String("file:///") + KIconLoader::global()->iconPath(QStringLiteral("document-open-remote"), KIconLoader::Small); | 117 | static QString defaultMapIconPath = QLatin1String("file:///") + KIconLoader::global()->iconPath(QStringLiteral("document-open-remote"), KIconLoader::Small); | ||
118 | 118 | | |||
119 | if (!memento) { | 119 | if (!memento) { | ||
120 | MessageViewer::VcardMemento *memento = new MessageViewer::VcardMemento(lst); | 120 | MessageViewer::VcardMemento *memento = new MessageViewer::VcardMemento(lst); | ||
121 | bodyPart->setBodyPartMemento(memento); | 121 | bodyPart->setBodyPartMemento(memento); | ||
122 | 122 | | |||
123 | if (asyncResultObserver) { | 123 | if (asyncResultObserver) { | ||
124 | QObject::connect(memento, SIGNAL(update(MessageViewer::Viewer::UpdateMode)), asyncResultObserver, SLOT(update(MessageViewer::Viewer::UpdateMode))); | 124 | QObject::connect(memento, SIGNAL(update(MessageViewer::UpdateMode)), asyncResultObserver, SLOT(update(MessageViewer::UpdateMode))); | ||
125 | } | 125 | } | ||
126 | } | 126 | } | ||
127 | 127 | | |||
128 | foreach (const KContacts::Addressee &a, al) { | 128 | foreach (const KContacts::Addressee &a, al) { | ||
129 | if (a.isEmpty()) { | 129 | if (a.isEmpty()) { | ||
130 | continue; | 130 | continue; | ||
131 | } | 131 | } | ||
132 | Akonadi::StandardContactFormatter formatter; | 132 | Akonadi::StandardContactFormatter formatter; | ||
▲ Show 20 Lines • Show All 227 Lines • Show Last 20 Lines |