Changeset View
Changeset View
Standalone View
Standalone View
src/filewidgets/kfileplacesitem.cpp
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Line(s) | 88 | { | |||
---|---|---|---|---|---|
105 | switch (type) { | 105 | switch (type) { | ||
106 | case KFilePlacesModel::PlacesType: | 106 | case KFilePlacesModel::PlacesType: | ||
107 | m_groupName = i18nc("@item", "Places"); | 107 | m_groupName = i18nc("@item", "Places"); | ||
108 | break; | 108 | break; | ||
109 | case KFilePlacesModel::RemoteType: | 109 | case KFilePlacesModel::RemoteType: | ||
110 | m_groupName = i18nc("@item", "Remote"); | 110 | m_groupName = i18nc("@item", "Remote"); | ||
111 | break; | 111 | break; | ||
112 | case KFilePlacesModel::RecentlySavedType: | 112 | case KFilePlacesModel::RecentlySavedType: | ||
113 | m_groupName = i18nc("@item", "Recently Saved"); | 113 | m_groupName = i18nc("@item", "Recents"); | ||
meven: Rename to "Recent" | |||||
this string needs a context, as "recent" basically leaves translators clueless on what it refers to and/or where it is used pino: this string needs a context, as "recent" basically leaves translators clueless on what it… | |||||
114 | break; | 114 | break; | ||
115 | case KFilePlacesModel::SearchForType: | 115 | case KFilePlacesModel::SearchForType: | ||
116 | m_groupName = i18nc("@item", "Search For"); | 116 | m_groupName = i18nc("@item", "Search For"); | ||
117 | break; | 117 | break; | ||
118 | case KFilePlacesModel::DevicesType: | 118 | case KFilePlacesModel::DevicesType: | ||
119 | m_groupName = i18nc("@item", "Devices"); | 119 | m_groupName = i18nc("@item", "Devices"); | ||
120 | break; | 120 | break; | ||
121 | case KFilePlacesModel::RemovableDevicesType: | 121 | case KFilePlacesModel::RemovableDevicesType: | ||
Show All 21 Lines | 142 | } else { | |||
143 | return bookmarkData(role); | 143 | return bookmarkData(role); | ||
144 | } | 144 | } | ||
145 | } | 145 | } | ||
146 | 146 | | |||
147 | KFilePlacesModel::GroupType KFilePlacesItem::groupType() const | 147 | KFilePlacesModel::GroupType KFilePlacesItem::groupType() const | ||
148 | { | 148 | { | ||
149 | if (!isDevice()) { | 149 | if (!isDevice()) { | ||
150 | const QString protocol = bookmark().url().scheme(); | 150 | const QString protocol = bookmark().url().scheme(); | ||
151 | if (protocol == QLatin1String("timeline")) { | 151 | if (protocol == QLatin1String("timeline") || | ||
152 | protocol == QLatin1String("recentdocuments")) { | ||||
152 | return KFilePlacesModel::RecentlySavedType; | 153 | return KFilePlacesModel::RecentlySavedType; | ||
153 | } | 154 | } | ||
154 | 155 | | |||
155 | if (protocol.contains(QLatin1String("search"))) { | 156 | if (protocol.contains(QLatin1String("search"))) { | ||
156 | return KFilePlacesModel::SearchForType; | 157 | return KFilePlacesModel::SearchForType; | ||
157 | } | 158 | } | ||
158 | 159 | | |||
159 | if (protocol == QLatin1String("bluetooth") || | 160 | if (protocol == QLatin1String("bluetooth") || | ||
▲ Show 20 Lines • Show All 259 Lines • Show Last 20 Lines |
Rename to "Recent"