mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Now that we changed some needed stuff at naturalCompare() method, we can set the replacementchar to put "Others" category on the last place. Now, we can actually call it
"Others" since it is placed the last one, and it is not necessary to call it "Uncategorized" because it was placed the first one before. svn path=/trunk/KDE/kdebase/apps/; revision=746061
This commit is contained in:
parent
f048b7fd65
commit
fc9a6701da
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
|
|
||||||
static const char *others = I18N_NOOP2("@title:group Name", "Uncategorized");
|
static const char *others = I18N_NOOP2("@title:group Name", "Others");
|
||||||
|
|
||||||
DolphinModel::DolphinModel(QObject *parent)
|
DolphinModel::DolphinModel(QObject *parent)
|
||||||
: KDirModel(parent)
|
: KDirModel(parent)
|
||||||
|
@ -245,7 +245,7 @@ QVariant DolphinModel::data(const QModelIndex &index, int role) const
|
||||||
retVariant = data(index, KCategorizedSortFilterProxyModel::CategoryDisplayRole);
|
retVariant = data(index, KCategorizedSortFilterProxyModel::CategoryDisplayRole);
|
||||||
|
|
||||||
if (retVariant == i18nc("@title:group Name", others))
|
if (retVariant == i18nc("@title:group Name", others))
|
||||||
retVariant = QString();
|
retVariant = QString(QChar(QChar::ReplacementCharacter));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue