[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: 'lightweight' QDir::isAbsolutePath replacement ?
From:       Thiago Macieira <thiago () kde ! org>
Date:       2008-03-14 14:38:13
Message-ID: 200803141538.14062.thiago () kde ! org
[Download RAW message or body]


On Friday 14 March 2008 14:56:16 Ralf Habacker wrote:
> bool QDir::isRelativePath(const QString &path)
> {
>     bool a = QFileInfo(path).isRelative();
>     bool b = QFileInfo::isRelative(path);
>     if (a != b)
>         qDebug() << path << a << b;
>     return a;
> }
>
[snip]
> it looks that the new implementation seems to assume that a path
> starting with '\' is a relative path.

Ah, I see! It's missing the conversion to Qt separators.


-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic