Changeset 172 for trunk/src/gui/dialogs/qfilesystemmodel.cpp
- Timestamp:
- Sep 9, 2009, 1:54:31 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/dialogs/qfilesystemmodel.cpp
r2 r172 356 356 QStringList pathElements = absolutePath.split(QLatin1Char('/'), QString::SkipEmptyParts); 357 357 if ((pathElements.isEmpty()) 358 #if !defined(Q_OS_ WIN) || defined(Q_OS_WINCE)358 #if !defined(Q_OS_OS2) && (!defined(Q_OS_WIN) || defined(Q_OS_WINCE)) 359 359 && QDir::fromNativeSeparators(longPath) != QLatin1String("/") 360 360 #endif … … 362 362 return const_cast<QFileSystemModelPrivate::QFileSystemNode*>(&root); 363 363 QModelIndex index = QModelIndex(); // start with "My Computer" 364 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)364 #if (defined(Q_OS_WIN) && !defined(Q_OS_WINCE)) || defined(Q_OS_OS2) 365 365 if (absolutePath.startsWith(QLatin1String("//"))) { // UNC path 366 366 QString host = QLatin1String("\\\\") + pathElements.first(); … … 401 401 for (int i = 0; i < pathElements.count(); ++i) { 402 402 QString element = pathElements.at(i); 403 #if def Q_OS_WIN404 // On Windows , "filename......." and "filename" are equivalent Task #133928403 #if defined(Q_OS_WIN) || defined(Q_OS_OS2) 404 // On Windows and OS/2, "filename......." and "filename" are equivalent Task #133928 405 405 while (element.endsWith(QLatin1Char('.'))) 406 406 element.chop(1); … … 1266 1266 } 1267 1267 QString fullPath = QDir::fromNativeSeparators(path.join(QDir::separator())); 1268 #if !defined(Q_OS_ WIN) || defined(Q_OS_WINCE)1268 #if !defined(Q_OS_OS2) && (!defined(Q_OS_WIN) || defined(Q_OS_WINCE)) 1269 1269 if ((fullPath.length() > 2) && fullPath[0] == QLatin1Char('/') && fullPath[1] == QLatin1Char('/')) 1270 1270 fullPath = fullPath.mid(1);
Note:
See TracChangeset
for help on using the changeset viewer.