Utils: Introduce FileName::fileName()

* Replacement for QFileInfo::fileName()
* Supports additional path components

Change-Id: I2b3e3dfb02617c8f98f1d67e16396bed97f97526
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2015-01-10 23:23:15 +02:00
committed by Orgad Shaneh
parent e7a18108e1
commit 97d957e3e3
3 changed files with 67 additions and 0 deletions

View File

@@ -73,6 +73,7 @@ public:
static FileName fromUtf8(const char *filename, int filenameSize = -1);
QString toString() const;
QString toUserOutput() const;
QString fileName(int pathComponents = 0) const;
bool exists() const;
FileName parentDir() const;