Fix imported qml component names under Windows

Reviewed-by: ckamm
This commit is contained in:
Kai Koehne
2010-03-31 15:49:19 +02:00
parent 15f879357c
commit 5ed718a002
3 changed files with 8 additions and 19 deletions

View File

@@ -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.