forked from qt-creator/qt-creator
Fix imported qml component names under Windows
Reviewed-by: ckamm
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include <qmljs/parser/qmljsnodepool_p.h>
|
||||
#include <qmljs/parser/qmljsastfwd_p.h>
|
||||
#include <QtCore/QDir>
|
||||
#include <QtCore/QDebug>
|
||||
|
||||
using namespace QmlJS;
|
||||
using namespace QmlJS::AST;
|
||||
@@ -57,6 +58,7 @@ Document::Document(const QString &fileName)
|
||||
|| fileInfo.suffix() == QLatin1String("qmlproject")) {
|
||||
_isQmlDocument = true;
|
||||
_componentName = fileInfo.baseName();
|
||||
qDebug() << _componentName;
|
||||
|
||||
if (! _componentName.isEmpty()) {
|
||||
// ### TODO: check the component name.
|
||||
|
Reference in New Issue
Block a user