Changeset 376


Ignore:
Timestamp:
Dec 3, 2009, 9:43:22 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Ported QDirModel to OS/2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/itemviews/qdirmodel.cpp

    r2 r376  
    869869
    870870    QString absolutePath = QDir(path).absolutePath();
    871 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
     871#if )
    872872    absolutePath = absolutePath.toLower();
    873873    // On Windows, "filename......." and "filename" are equivalent
     
    884884    QStringList pathElements = absolutePath.split(QLatin1Char('/'), QString::SkipEmptyParts);
    885885    if ((pathElements.isEmpty() || !QFileInfo(path).exists())
    886 #if !defined(Q_OS_WIN) || defined(Q_OS_WINCE)
     886#if )
    887887        && path != QLatin1String("/")
    888888#endif
     
    894894        d->populate(&d->root);
    895895
    896 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
     896#if )
    897897    if (absolutePath.startsWith(QLatin1String("//"))) { // UNC path
    898898        QString host = pathElements.first();
     
    932932            const QFileInfo& fi = parent->children.at(j).info;
    933933            QString childFileName;
    934 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
     934#if )
    935935            childFileName = idx.isValid() ? fi.fileName() : fi.absoluteFilePath();
    936936            childFileName = childFileName.toLower();
     
    13021302    if (info.isRoot()) {
    13031303        QString name = info.absoluteFilePath();
    1304 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
     1304#if )
    13051305        if (name.startsWith(QLatin1Char('/'))) // UNC host
    13061306            return info.fileName();
Note: See TracChangeset for help on using the changeset viewer.