forked from qt-creator/qt-creator
Replace QFileInfo::fileName() with FileName::fileName()
Change-Id: I4852ff215abf25649fc5eac1e922ae901839ca3d Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -35,7 +35,6 @@
|
||||
//#include <qmljs/qmljsinterpreter.h>
|
||||
#include <qmljs/parser/qmljsast_p.h>
|
||||
|
||||
#include <QFileInfo>
|
||||
#include <QMutexLocker>
|
||||
|
||||
using namespace QmlJSTools::Internal;
|
||||
@@ -75,7 +74,7 @@ public:
|
||||
if (!doc->componentName().isEmpty())
|
||||
m_documentContext = doc->componentName();
|
||||
else
|
||||
m_documentContext = QFileInfo(doc->fileName()).fileName();
|
||||
m_documentContext = Utils::FileName::fromString(doc->fileName()).fileName();
|
||||
accept(doc->ast(), m_documentContext);
|
||||
return m_entries;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user