diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-12-22 00:05:06 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-12-22 22:54:56 (GMT) |
commit | f360cc9b521e5e3e7d4b896627b3257365c6ad3c (patch) | |
tree | 1082b32b852cd82c0d46b55445232b7deafa8cbd /src/declarative | |
parent | b461c315547b42293968219583187d83b2b25e0f (diff) | |
download | Qt-f360cc9b521e5e3e7d4b896627b3257365c6ad3c.zip Qt-f360cc9b521e5e3e7d4b896627b3257365c6ad3c.tar.gz Qt-f360cc9b521e5e3e7d4b896627b3257365c6ad3c.tar.bz2 |
Improve QDeclarativeComponent test coverage.
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/qml/qdeclarativecomponent.cpp | 11 | ||||
-rw-r--r-- | src/declarative/qml/qdeclarativecomponent_p.h | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/declarative/qml/qdeclarativecomponent.cpp b/src/declarative/qml/qdeclarativecomponent.cpp index 77fc925..ecb3bc5 100644 --- a/src/declarative/qml/qdeclarativecomponent.cpp +++ b/src/declarative/qml/qdeclarativecomponent.cpp @@ -699,17 +699,6 @@ QObject *QDeclarativeComponent::create(QDeclarativeContext *context) return rv; } -QObject *QDeclarativeComponentPrivate::create(QDeclarativeContextData *context, - const QBitField &bindings) -{ - if (!context) - context = QDeclarativeContextData::get(engine->rootContext()); - - QObject *rv = beginCreate(context, bindings); - completeCreate(); - return rv; -} - /*! This method provides more advanced control over component instance creation. In general, programmers should use QDeclarativeComponent::create() to create a diff --git a/src/declarative/qml/qdeclarativecomponent_p.h b/src/declarative/qml/qdeclarativecomponent_p.h index 7b30bad..daf1dcb 100644 --- a/src/declarative/qml/qdeclarativecomponent_p.h +++ b/src/declarative/qml/qdeclarativecomponent_p.h @@ -81,7 +81,6 @@ class Q_AUTOTEST_EXPORT QDeclarativeComponentPrivate : public QObjectPrivate, pu public: QDeclarativeComponentPrivate() : typeData(0), progress(0.), start(-1), count(-1), cc(0), engine(0), creationContext(0) {} - QObject *create(QDeclarativeContextData *, const QBitField &); QObject *beginCreate(QDeclarativeContextData *, const QBitField &); void completeCreate(); |