Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/plugin/recentcontactsmodel.cpp
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Line(s) | 76 | } else if (role == Qt::DecorationRole) { | |||
---|---|---|---|---|---|
77 | return data->presenceIconName(); | 77 | return data->presenceIconName(); | ||
78 | } else if (role == Kicker::FavoriteIdRole) { | 78 | } else if (role == Kicker::FavoriteIdRole) { | ||
79 | return id; | 79 | return id; | ||
80 | } else if (role == Kicker::HasActionListRole) { | 80 | } else if (role == Kicker::HasActionListRole) { | ||
81 | return true; | 81 | return true; | ||
82 | } else if (role == Kicker::ActionListRole) { | 82 | } else if (role == Kicker::ActionListRole) { | ||
83 | QVariantList actionList ; | 83 | QVariantList actionList ; | ||
84 | 84 | | |||
85 | const QVariantMap &forgetAction = Kicker::createActionItem(i18n("Forget Contact"), QStringLiteral("forget")); | 85 | const QVariantMap &forgetAction = Kicker::createActionItem(i18n("Forget Contact"), QStringLiteral("edit-clear-history"), QStringLiteral("forget")); | ||
86 | actionList << forgetAction; | 86 | actionList << forgetAction; | ||
87 | 87 | | |||
88 | const QVariantMap &forgetAllAction = Kicker::createActionItem(i18n("Forget All Contacts"), QStringLiteral("forgetAll")); | 88 | const QVariantMap &forgetAllAction = Kicker::createActionItem(i18n("Forget All Contacts"), QStringLiteral("edit-clear-history"), QStringLiteral("forgetAll")); | ||
89 | actionList << forgetAllAction; | 89 | actionList << forgetAllAction; | ||
90 | 90 | | |||
91 | actionList << Kicker::createSeparatorActionItem(); | 91 | actionList << Kicker::createSeparatorActionItem(); | ||
92 | 92 | | |||
93 | actionList << Kicker::createActionItem(i18n("Show Contact Information..."), QStringLiteral("showContactInfo")); | 93 | actionList << Kicker::createActionItem(i18n("Show Contact Information..."), QString(), QStringLiteral("showContactInfo")); | ||
meven: Missing icon | |||||
94 | 94 | | |||
95 | return actionList; | 95 | return actionList; | ||
96 | } else if (role == Kicker::DescriptionRole) { | 96 | } else if (role == Kicker::DescriptionRole) { | ||
97 | return QString(); | 97 | return QString(); | ||
98 | } | 98 | } | ||
99 | 99 | | |||
100 | return QVariant(); | 100 | return QVariant(); | ||
101 | } | 101 | } | ||
▲ Show 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 156 | { | |||
157 | return rowCount(); | 157 | return rowCount(); | ||
158 | } | 158 | } | ||
159 | 159 | | |||
160 | QVariantList RecentContactsModel::actions() const | 160 | QVariantList RecentContactsModel::actions() const | ||
161 | { | 161 | { | ||
162 | QVariantList actionList; | 162 | QVariantList actionList; | ||
163 | 163 | | |||
164 | if (rowCount()) { | 164 | if (rowCount()) { | ||
165 | actionList << Kicker::createActionItem(i18n("Forget All Contacts"), QStringLiteral("forgetAll")); | 165 | actionList << Kicker::createActionItem(i18n("Forget All Contacts"), QStringLiteral("edit-clear-history"), QStringLiteral("forgetAll")); | ||
166 | } | 166 | } | ||
167 | 167 | | |||
168 | return actionList; | 168 | return actionList; | ||
169 | } | 169 | } | ||
170 | 170 | | |||
171 | void RecentContactsModel::refresh() | 171 | void RecentContactsModel::refresh() | ||
172 | { | 172 | { | ||
173 | QObject *oldModel = sourceModel(); | 173 | QObject *oldModel = sourceModel(); | ||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |
Missing icon