summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2015-01-10 23:40:32 +0200
committerhjk <hjk@theqtcompany.com>2015-01-29 11:15:43 +0000
commit8b5dcc13c539e755b67bfb6ae38553534c9b3d11 (patch)
tree6ece649b191598e412049646832a59ae096f850c /src/app
parent6fd0d4ed339fe656bc68d7b31ba9d8e63955b12a (diff)
downloadqt-creator-8b5dcc13c539e755b67bfb6ae38553534c9b3d11.tar.gz
Replace QFileInfo::fileName() with FileName::fileName()
Change-Id: I4852ff215abf25649fc5eac1e922ae901839ca3d Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp
index b137f9ad73..3debfdd3ed 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -36,6 +36,7 @@
#include <extensionsystem/pluginmanager.h>
#include <extensionsystem/pluginspec.h>
#include <qtsingleapplication.h>
+#include <utils/fileutils.h>
#include <utils/hostosinfo.h>
#include <QDebug>
@@ -172,7 +173,7 @@ static bool copyRecursively(const QString &srcFilePath,
if (srcFileInfo.isDir()) {
QDir targetDir(tgtFilePath);
targetDir.cdUp();
- if (!targetDir.mkdir(QFileInfo(tgtFilePath).fileName()))
+ if (!targetDir.mkdir(Utils::FileName::fromString(tgtFilePath).fileName()))
return false;
QDir sourceDir(srcFilePath);
QStringList fileNames = sourceDir.entryList(QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot | QDir::Hidden | QDir::System);