Use KFileItem::text() instead of KUrl::fileName() to display the entry's name in the metadata panel. This way Nepomuk results and all entries from KIO slaves that make use of UDS_DISPLAY_NAME look nice.

svn path=/trunk/KDE/kdebase/apps/; revision=1056260
This commit is contained in:
Sebastian Trueg 2009-11-29 18:16:36 +00:00
parent a0a211f973
commit bd47f7f978

View file

@ -184,7 +184,7 @@ void InformationPanelContent::showItem(const KFileItem& item)
connect(job, SIGNAL(failed(const KFileItem&)),
this, SLOT(showIcon(const KFileItem&)));
setNameLabelText(itemUrl.fileName());
setNameLabelText(item.text());
}
}