mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
fix indentation
svn path=/trunk/KDE/kdebase/apps/; revision=744669
This commit is contained in:
parent
9b99cefca5
commit
7cdaa3f5bf
1 changed files with 7 additions and 9 deletions
|
@ -80,21 +80,19 @@ QVariant DolphinModel::data(const QModelIndex &index, int role) const
|
||||||
return retString;
|
return retString;
|
||||||
}
|
}
|
||||||
QVariant data = theIndex.model()->data(theIndex, Qt::DisplayRole);
|
QVariant data = theIndex.model()->data(theIndex, Qt::DisplayRole);
|
||||||
QString name = data.toString();
|
QString name = data.toString();
|
||||||
if (!name.isEmpty()) {
|
if (!name.isEmpty()) {
|
||||||
if (!item.isHidden() && name.at(0).isLetter())
|
if (!item.isHidden() && name.at(0).isLetter())
|
||||||
retString = name.at(0).toUpper();
|
retString = name.at(0).toUpper();
|
||||||
else if (item.isHidden()) {
|
else if (item.isHidden()) {
|
||||||
if(name.at(0) == '.') {
|
if(name.at(0) == '.') {
|
||||||
if(name.size() > 1 && name.at(1).isLetter())
|
if(name.size() > 1 && name.at(1).isLetter())
|
||||||
retString = name.at(1).toUpper();
|
retString = name.at(1).toUpper();
|
||||||
else
|
else
|
||||||
retString = i18nc("@title:group Name", "Others");
|
retString = i18nc("@title:group Name", "Others");
|
||||||
} else
|
} else
|
||||||
retString = name.at(0).toUpper();
|
retString = name.at(0).toUpper();
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
bool validCategory = false;
|
bool validCategory = false;
|
||||||
|
|
||||||
const QString str(name.toUpper());
|
const QString str(name.toUpper());
|
||||||
|
|
Loading…
Reference in a new issue