Fix cases where functions are called with a drive and no slash
authorAndy Shaw <andy.shaw@digia.com>
Tue, 17 Apr 2012 18:30:54 +0000 (20:30 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 16 May 2012 02:24:29 +0000 (04:24 +0200)
commitcfb44c6528b2518274bf157388832d1d610ce0e4
tree146214ecd8e7d4ae595e208dba192e2b8ecd8809
parentfb6d83cca59930345231161c1d6bfdf79fe25807
Fix cases where functions are called with a drive and no slash

When a file is specified on a path that includes a drive letter
followed by a colon but no slash then it didn't always account
for the fact that this refers to the current path on that drive.
This fixes the problems in completeBaseName(), baseName() and
path().  Tests are also added for these three cases and some
others too.

Task-number: QTBUG-25353

Change-Id: I47a197c6af066f532442ad269be57597ec61303a
Reviewed-by: Irfan Omair <irfan.omair@gmail.com>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
src/corelib/io/qfilesystementry.cpp
tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp