forked from qt-creator/qt-creator
ProjectExplorer: Use FilePaths in project tree nodes
Change-Id: I31b15c428d9b962333947b1e32641fd80f61d069 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
using namespace QmlJS::AST;
|
||||
using QmlJS::SourceLocation;
|
||||
using namespace QmlJSTools;
|
||||
using namespace Utils;
|
||||
|
||||
namespace QmlJSEditor {
|
||||
|
||||
@@ -198,7 +199,7 @@ public:
|
||||
if (oldFileNode) {
|
||||
ProjectExplorer::FolderNode *containingFolder = oldFileNode->parentFolderNode();
|
||||
if (containingFolder)
|
||||
containingFolder->addFiles(QStringList(newFileName));
|
||||
containingFolder->addFiles({FilePath::fromString(newFileName)});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user