]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmodel.cpp
fix indentation
[dolphin.git] / src / dolphinmodel.cpp
index 54647d91c81f4dc78cba191bd1ad8af922ea4d91..d568902510bc46ab600e65ffb2b972e85d7a9571 100644 (file)
@@ -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());