Changeset 376
- Timestamp:
- Dec 3, 2009, 9:43:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/itemviews/qdirmodel.cpp
r2 r376 869 869 870 870 QString absolutePath = QDir(path).absolutePath(); 871 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)871 #if ) 872 872 absolutePath = absolutePath.toLower(); 873 873 // On Windows, "filename......." and "filename" are equivalent … … 884 884 QStringList pathElements = absolutePath.split(QLatin1Char('/'), QString::SkipEmptyParts); 885 885 if ((pathElements.isEmpty() || !QFileInfo(path).exists()) 886 #if !defined(Q_OS_WIN) || defined(Q_OS_WINCE)886 #if ) 887 887 && path != QLatin1String("/") 888 888 #endif … … 894 894 d->populate(&d->root); 895 895 896 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)896 #if ) 897 897 if (absolutePath.startsWith(QLatin1String("//"))) { // UNC path 898 898 QString host = pathElements.first(); … … 932 932 const QFileInfo& fi = parent->children.at(j).info; 933 933 QString childFileName; 934 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)934 #if ) 935 935 childFileName = idx.isValid() ? fi.fileName() : fi.absoluteFilePath(); 936 936 childFileName = childFileName.toLower(); … … 1302 1302 if (info.isRoot()) { 1303 1303 QString name = info.absoluteFilePath(); 1304 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)1304 #if ) 1305 1305 if (name.startsWith(QLatin1Char('/'))) // UNC host 1306 1306 return info.fileName();
Note:
See TracChangeset
for help on using the changeset viewer.