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

@@ -45,10 +45,10 @@ QmlProjectItem::~QmlProjectItem()
delete d_ptr;
}
QmlListProperty<QmlProjectContentItem> QmlProjectItem::content()
QDeclarativeListProperty<QmlProjectContentItem> QmlProjectItem::content()
{
Q_D(QmlProjectItem);
return QmlListProperty<QmlProjectContentItem>(this, d->content);
return QDeclarativeListProperty<QmlProjectContentItem>(this, d->content);
}
QString QmlProjectItem::sourceDirectory() const
@@ -137,7 +137,4 @@ bool QmlProjectItem::matchesFile(const QString &filePath) const
} // namespace QmlProjectManager
QML_DEFINE_NOCREATE_TYPE(QmlProjectManager::QmlProjectContentItem)
QML_DEFINE_TYPE(QmlProject,1,0,Project,QmlProjectManager::QmlProjectItem)
#include "qmlprojectitem.moc"