forked from qt-creator/qt-creator
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user