qt5base-lts/tests/auto/corelib/io
João Abecasis 5c637e9171 Add QFileInfo::isNativePath
This function returns true if the file path can be used directly with
native APIs, modulo encoding and path separator conversions. This is
important for applications that interface with other libraries or simply
need to use native APIs together with Qt.

Traditionally, this information was available in QAbstractFileEngine and
forced users to explicitly create an engine or use internal API such as
QFile::fileEngine to access the underlying engine and this piece of
information.

Given its usefulness, exposing the information in a more visible place
is more appropriate. This reduces the need for people to know or care
about implementation details, like file engines...

The existing isLocalFs test was updated and repurposed to use the new
API, instead of relying on file engines and internal implementation
details of QFileInfo.

Change-Id: I65f497bb25741f6f7ea4d2c3b3562c8c4aab8bea
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
2012-02-14 02:48:35 +01:00
..
largefile Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qabstractfileengine Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qbuffer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qdatastream Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qdebug Fix QTextStream and QDebug operator<< for QLatin1String 2012-02-02 11:10:04 +01:00
qdir Fixed qdir unittest to handle being run as root 2012-02-09 06:53:05 +01:00
qdiriterator Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qfile Fixed qfile unittest rename() failing as root 2012-02-09 06:53:00 +01:00
qfileinfo Add QFileInfo::isNativePath 2012-02-14 02:48:35 +01:00
qfilesystementry Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qfilesystemwatcher Make "nmake check" pass for corelib tests in Windows. 2012-02-09 12:52:28 +01:00
qiodevice Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qnodebug Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qprocess Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qprocessenvironment Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qresourceengine Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsettings Make "nmake check" pass for corelib tests in Windows. 2012-02-09 12:52:28 +01:00
qstandardpaths Fixed qstandardpaths unittest to handle being run as root 2012-02-09 06:53:10 +01:00
qtemporarydir Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtemporaryfile Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtextstream Fix QTextStream and QDebug operator<< for QLatin1String 2012-02-02 11:10:04 +01:00
qurl Add QUrl::toDisplayString(), which is toString() without password. 2012-02-11 11:02:01 +01:00
qwinoverlappedionotifier Update contact address in license headers. 2012-01-31 04:54:56 +01:00
io.pro QWinOverlappedIoNotifier introduced 2012-01-24 14:39:58 +01:00