Fix the QML list interface

The QML list interface was changed, so that there is now a read only
constructor and the default properties are removed. This is because the
original interface was very runtime centric, like other parts in QML.
The new interface was changed for the needs of the QML designer and
debugger.

Task-number: QTBUG-9390

Change-Id: Ia61a2457432b4fc5c0cf440eeebd9d3a6c4c6463
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Friedemann Kleint
2012-10-24 10:48:22 +02:00
committed by The Qt Project
parent 371292f288
commit 31d3de9a9c
2 changed files with 2 additions and 2 deletions

View File

@@ -404,7 +404,7 @@ void QDeclarativeAudioEngine::appendFunction(QQmlListProperty<QObject> *property
QQmlListProperty<QObject> QDeclarativeAudioEngine::bank() QQmlListProperty<QObject> QDeclarativeAudioEngine::bank()
{ {
return QQmlListProperty<QObject>(this, 0, appendFunction); return QQmlListProperty<QObject>(this, 0, appendFunction, 0, 0, 0);
} }
/*! /*!

View File

@@ -363,7 +363,7 @@ void QDeclarativeSound::setCategoryObject(QDeclarativeAudioCategory *categoryObj
QQmlListProperty<QDeclarativePlayVariation> QDeclarativeSound::playVariationlist() QQmlListProperty<QDeclarativePlayVariation> QDeclarativeSound::playVariationlist()
{ {
return QQmlListProperty<QDeclarativePlayVariation>(this, 0, appendFunction); return QQmlListProperty<QDeclarativePlayVariation>(this, 0, appendFunction, 0, 0, 0);
} }
QList<QDeclarativePlayVariation*>& QDeclarativeSound::playlist() QList<QDeclarativePlayVariation*>& QDeclarativeSound::playlist()