diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-01-13 02:20:11 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-01-13 02:23:50 (GMT) |
commit | 05adc294d063171d9d0accf819826684813d396a (patch) | |
tree | 3faded5e3483b6bc22857a148db1c2ae5ab42a90 /src/declarative/qml/qmlcomponent.cpp | |
parent | 24a7d8559f291c9ff565142bf3a7a230dccb6c63 (diff) | |
download | Qt-05adc294d063171d9d0accf819826684813d396a.zip Qt-05adc294d063171d9d0accf819826684813d396a.tar.gz Qt-05adc294d063171d9d0accf819826684813d396a.tar.bz2 |
Remove QByteArray constructor from QmlComponent.
It was too easily confused with the QString constructor that had
completely different semantics. Use setData() instead.
Task-number: QTBUG-6590
Diffstat (limited to 'src/declarative/qml/qmlcomponent.cpp')
-rw-r--r-- | src/declarative/qml/qmlcomponent.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/declarative/qml/qmlcomponent.cpp b/src/declarative/qml/qmlcomponent.cpp index a1292f5..9e06016 100644 --- a/src/declarative/qml/qmlcomponent.cpp +++ b/src/declarative/qml/qmlcomponent.cpp @@ -347,22 +347,6 @@ QmlComponent::QmlComponent(QmlEngine *engine, const QString &fileName, } /*! - Create a QmlComponent from the given QML \a data and give it the - specified \a parent and \a engine. \a url is used to provide a base path - for items resolved by this component, and may be an empty url if the - component contains no items to resolve. - - \sa setData() -*/ -QmlComponent::QmlComponent(QmlEngine *engine, const QByteArray &data, const QUrl &url, QObject *parent) - : QObject(*(new QmlComponentPrivate), parent) -{ - Q_D(QmlComponent); - d->engine = engine; - setData(data,url); -} - -/*! \internal */ QmlComponent::QmlComponent(QmlEngine *engine, QmlCompiledData *cc, int start, int count, QObject *parent) |