This way Nepomuk search results get their proper user readable names.
BUG: 287472
REVIEW: 103237
} else {
QString message;
if (item.isDir()) {
- message = item.name();
+ message = item.text();
} else {
- message = i18nc("@info:status filename (type)", "%1 (%2)", item.name(), item.mimeComment());
+ message = i18nc("@info:status filename (type)", "%1 (%2)", item.text(), item.mimeComment());
}
m_statusBar->setMessage(message, DolphinStatusBar::Default);
}
}
if (m_requestRole[NameRole]) {
- data.insert("name", item.name());
+ data.insert("name", item.text());
}
if (m_requestRole[SizeRole]) {
for (int index = 0; index < model->count(); index++) {
const KFileItem item = model->fileItem(index);
- if (pattern.exactMatch(item.name())) {
+ if (pattern.exactMatch(item.text())) {
// An alternative approach would be to store the matching items in a QSet<int> and
// select them in one go after the loop, but we'd need a new function
// KItemListSelectionManager::setSelected(QSet<int>, SelectionMode mode)