qt5base-lts/tests/auto/corelib
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
..
animation Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
codecs Move QtConcurrent into its own module 2012-02-05 17:49:16 +01:00
global Fix qlogging autotest for clang 2012-02-10 15:28:22 +01:00
io Add QFileInfo::isNativePath 2012-02-14 02:48:35 +01:00
itemmodels tst_qabstractitemmodel does not need QT += widgets 2012-01-31 04:55:47 +01:00
json Update contact address in license headers. 2012-01-31 04:54:56 +01:00
kernel Fix tst_QSocketNotifier on Mac OS X 2012-02-13 22:16:17 +01:00
plugin Fixed qlibrary unittest to work on mac 2012-02-10 03:02:07 +01:00
statemachine Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
thread Improved stability of tst_qsemaphore (especially on mac) 2012-02-08 02:10:51 +01:00
tools Remove HP PA-RISC atomic implementation. 2012-02-13 12:02:11 +01:00
xml Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
corelib.pro Move QtConcurrent into its own module 2012-02-05 17:49:16 +01:00