From 7cdaa3f5bff507812e3e68f14c52aa0782887886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Tue, 4 Dec 2007 02:56:48 +0000 Subject: [PATCH] fix indentation svn path=/trunk/KDE/kdebase/apps/; revision=744669 --- src/dolphinmodel.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/dolphinmodel.cpp b/src/dolphinmodel.cpp index 54647d91c8..d568902510 100644 --- a/src/dolphinmodel.cpp +++ b/src/dolphinmodel.cpp @@ -80,21 +80,19 @@ QVariant DolphinModel::data(const QModelIndex &index, int role) const return retString; } QVariant data = theIndex.model()->data(theIndex, Qt::DisplayRole); - QString name = data.toString(); + QString name = data.toString(); if (!name.isEmpty()) { if (!item.isHidden() && name.at(0).isLetter()) retString = name.at(0).toUpper(); - else if (item.isHidden()) { - if(name.at(0) == '.') { - if(name.size() > 1 && name.at(1).isLetter()) + else if (item.isHidden()) { + if(name.at(0) == '.') { + if(name.size() > 1 && name.at(1).isLetter()) retString = name.at(1).toUpper(); - else + else retString = i18nc("@title:group Name", "Others"); - } else + } else retString = name.at(0).toUpper(); - } - else - { + } else { bool validCategory = false; const QString str(name.toUpper());