Changeset View
Changeset View
Standalone View
Standalone View
src/filewidgets/kfileplacesitem.cpp
Show First 20 Lines • Show All 312 Lines • ▼ Show 20 Line(s) | 297 | { | |||
---|---|---|---|---|---|
313 | if (after) { | 313 | if (after) { | ||
314 | root.moveBookmark(bookmark, after->bookmark()); | 314 | root.moveBookmark(bookmark, after->bookmark()); | ||
315 | } | 315 | } | ||
316 | 316 | | |||
317 | return bookmark; | 317 | return bookmark; | ||
318 | } | 318 | } | ||
319 | 319 | | |||
320 | KBookmark KFilePlacesItem::createSystemBookmark(KBookmarkManager *manager, | 320 | KBookmark KFilePlacesItem::createSystemBookmark(KBookmarkManager *manager, | ||
321 | const QString &translationContext, | ||||
321 | const QString &untranslatedLabel, | 322 | const QString &untranslatedLabel, | ||
322 | const QString &translatedLabel, | | |||
323 | const QUrl &url, | 323 | const QUrl &url, | ||
324 | const QString &iconName) | 324 | const QString &iconName) | ||
325 | { | 325 | { | ||
326 | Q_UNUSED(translatedLabel); // parameter is only necessary to force the caller | 326 | Q_UNUSED(translationContext); // parameter is only necessary to force the caller | ||
327 | // providing a translated string for the label | 327 | // to provide a marked-for-translation string for the label, with context | ||
328 | 328 | | |||
329 | KBookmark bookmark = createBookmark(manager, untranslatedLabel, url, iconName); | 329 | KBookmark bookmark = createBookmark(manager, untranslatedLabel, url, iconName); | ||
330 | if (!bookmark.isNull()) { | 330 | if (!bookmark.isNull()) { | ||
331 | bookmark.setMetaDataItem(QStringLiteral("isSystemItem"), QStringLiteral("true")); | 331 | bookmark.setMetaDataItem(QStringLiteral("isSystemItem"), QStringLiteral("true")); | ||
332 | } | 332 | } | ||
333 | return bookmark; | 333 | return bookmark; | ||
334 | } | 334 | } | ||
335 | 335 | | |||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |