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", "Recent"); | ||
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 24 Lines | 145 | } else { | |||
146 | return bookmarkData(role); | 146 | return bookmarkData(role); | ||
147 | } | 147 | } | ||
148 | } | 148 | } | ||
149 | 149 | | |||
150 | KFilePlacesModel::GroupType KFilePlacesItem::groupType() const | 150 | KFilePlacesModel::GroupType KFilePlacesItem::groupType() const | ||
151 | { | 151 | { | ||
152 | if (!isDevice()) { | 152 | if (!isDevice()) { | ||
153 | const QString protocol = bookmark().url().scheme(); | 153 | const QString protocol = bookmark().url().scheme(); | ||
154 | if (protocol == QLatin1String("timeline")) { | 154 | if (protocol == QLatin1String("timeline") || | ||
155 | protocol == QLatin1String("recentlyused")) { | ||||
155 | return KFilePlacesModel::RecentlySavedType; | 156 | return KFilePlacesModel::RecentlySavedType; | ||
156 | } | 157 | } | ||
157 | 158 | | |||
158 | if (protocol.contains(QLatin1String("search"))) { | 159 | if (protocol.contains(QLatin1String("search"))) { | ||
159 | return KFilePlacesModel::SearchForType; | 160 | return KFilePlacesModel::SearchForType; | ||
160 | } | 161 | } | ||
161 | 162 | | |||
162 | if (protocol == QLatin1String("bluetooth") || | 163 | if (protocol == QLatin1String("bluetooth") || | ||
▲ Show 20 Lines • Show All 273 Lines • Show Last 20 Lines |
Rename to "Recent"