QmlProjectManager: Fix compilation with latest changes of QDeclarative

All files have been renamed from Qml to QDeclarative.
Registration of types is now done in an initializer method.
This commit is contained in:
Kai Koehne
2010-02-26 14:46:04 +01:00
parent 318fee6f5c
commit 4c59f3f2ce
15 changed files with 66 additions and 34 deletions

View File

@@ -39,7 +39,7 @@
#include <qmljseditor/qmljsmodelmanagerinterface.h>
#include <QTextStream>
#include <QmlComponent>
#include <QDeclarativeComponent>
#include <QtDebug>
namespace QmlProjectManager {
@@ -88,7 +88,7 @@ void QmlProject::parseProject(RefreshOptions options)
if (!m_projectItem) {
QFile file(m_fileName);
if (file.open(QFile::ReadOnly)) {
QmlComponent *component = new QmlComponent(&m_engine, this);
QDeclarativeComponent *component = new QDeclarativeComponent(&m_engine, this);
component->setData(file.readAll(), QUrl::fromLocalFile(m_fileName));
if (component->isReady()
&& qobject_cast<QmlProjectItem*>(component->create())) {