┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRafael Fernández López <[email protected]>2007-12-04 02:56:48 +0000
committerRafael Fernández López <[email protected]>2007-12-04 02:56:48 +0000
commit7cdaa3f5bff507812e3e68f14c52aa0782887886 (patch)
tree711ab7daae5ed5365a2c2bfe07d1ab2c5bdf9e35 /src
parent9b99cefca572a8c8e11fae4178d23706b48d586e (diff)
fix indentation
svn path=/trunk/KDE/kdebase/apps/; revision=744669
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmodel.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/dolphinmodel.cpp b/src/dolphinmodel.cpp
index 54647d91c..d56890251 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());