mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
Use KFileItem::text() instead of name() for pretty printed filenames
svn path=/trunk/KDE/kdebase/apps/; revision=1074761
This commit is contained in:
parent
d3ee535749
commit
313cacd448
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue