Use KFileItem::text() instead of name() for pretty printed filenames

svn path=/trunk/KDE/kdebase/apps/; revision=1074761
This commit is contained in:
Sebastian Trueg 2010-01-14 18:14:10 +00:00
parent d3ee535749
commit 313cacd448
2 changed files with 4 additions and 4 deletions

View file

@ -550,7 +550,7 @@ QString DolphinView::statusBarText() const
if (folderCount + fileCount == 1) {
// if only one item is selected, show the filename
const QString name = list.first().name();
const QString name = list.first().text();
text = (folderCount == 1) ? i18nc("@info:status", "<filename>%1</filename> selected", name) :
i18nc("@info:status", "<filename>%1</filename> selected (%2)",
name, KIO::convertSize(totalFileSize));
@ -881,7 +881,7 @@ bool DolphinView::eventFilter(QObject* watched, QEvent* event)
}
}
break;
default:
break;
}
@ -1207,7 +1207,7 @@ void DolphinView::slotDirListerCompleted()
void DolphinView::slotLoadingCompleted()
{
m_expanderActive = false;
m_loadingDirectory = false;
m_loadingDirectory = false;
if (!m_activeItemUrl.isEmpty()) {
// assure that the current item remains visible

View file

@ -252,7 +252,7 @@ QWidget* ToolTipManager::createTipContent(const QPixmap& pixmap) const
// add item name
QLabel* nameLabel = new QLabel(tipContent);
nameLabel->setText(m_item.name());
nameLabel->setText(m_item.text());
nameLabel->setWordWrap(true);
QFont font = nameLabel->font();
font.setBold(true);