diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2015-01-10 23:23:15 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2015-01-28 11:42:41 +0000 |
commit | 97d957e3e340f35272c43c0754f6775eb6d5d93b (patch) | |
tree | a5b1efa8ca8dbc10c3054af998316dc8c77400a5 /src/libs/utils/fileutils.h | |
parent | e7a18108e1bf6f3f5959a72a8229449cf4ea6a2b (diff) | |
download | qt-creator-97d957e3e340f35272c43c0754f6775eb6d5d93b.tar.gz |
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>
Diffstat (limited to 'src/libs/utils/fileutils.h')
-rw-r--r-- | src/libs/utils/fileutils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/utils/fileutils.h b/src/libs/utils/fileutils.h index 20a989003b..32e96e6dc2 100644 --- a/src/libs/utils/fileutils.h +++ b/src/libs/utils/fileutils.h @@ -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; |