Changeset 1134 for trunk/src


Ignore:
Timestamp:
Mar 12, 2013, 10:48:53 PM (12 years ago)
Author:
Dmitry A. Kuminov
Message:

corelib: Make QDir::absoluteFilePath() kLIBC path rewrite aware. Extends r1112.

This fix makes it possible to use paths like /@unixroot for e.g. Qt system directories.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/io/qdir.cpp

    r1084 r1134  
    6262#include <stdlib.h>
    6363
     64
     65
     66
     67
     68
     69
    6470QT_BEGIN_NAMESPACE
    6571
     
    715721    bool curDirOnDriveRelative = false;
    716722    if (isAbsolutePath(fn)) {
     723
     724
     725
     726
     727
     728
     729
     730
    717731        // filter out not really absolute cases
    718732        QChar ch0, ch1, ch2;
     
    737751            ret = QFileInfo(fn).absoluteFilePath();
    738752        } else {
     753
    739754            if (curDriveRelative)
    740755                ret = ret.left(2); // only take the drive name from this QDir
Note: See TracChangeset for help on using the changeset viewer.