src/corelib/io/qfsfileengine_unix.cpp
branchRCL_3
changeset 4 3b1da2848fc7
parent 3 41300fa6a67c
child 5 d3bac044e0f0
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtCore module of the Qt Toolkit.
     7 ** This file is part of the QtCore module of the Qt Toolkit.
     8 **
     8 **
   823 #else
   823 #else
   824         if (d->filePath == QLatin1String("/")) {
   824         if (d->filePath == QLatin1String("/")) {
   825             ret |= RootFlag;
   825             ret |= RootFlag;
   826         } else {
   826         } else {
   827             QString baseName = fileName(BaseName);
   827             QString baseName = fileName(BaseName);
   828             if ((baseName.size() > 1
   828             if ((baseName.size() > 0 && baseName.at(0) == QLatin1Char('.'))
   829                  && baseName.at(0) == QLatin1Char('.') && baseName.at(1) != QLatin1Char('.'))
       
   830 #  if !defined(QWS) && defined(Q_OS_MAC)
   829 #  if !defined(QWS) && defined(Q_OS_MAC)
   831                     || _q_isMacHidden(d->filePath)
   830                 || _q_isMacHidden(d->filePath)
   832 #  endif
   831 #  endif
   833             ) {
   832             ) {
   834                 ret |= HiddenFlag;
   833                 ret |= HiddenFlag;
   835             }
   834             }
   836         }
   835         }