summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcomponent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qmlcomponent.cpp')
-rw-r--r--src/declarative/qml/qmlcomponent.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlcomponent.cpp b/src/declarative/qml/qmlcomponent.cpp
index f291ac0..1c35606 100644
--- a/src/declarative/qml/qmlcomponent.cpp
+++ b/src/declarative/qml/qmlcomponent.cpp
@@ -91,8 +91,8 @@ Item {
height: 10
}
}
- ComponentInstance { component: RedSquare }
- ComponentInstance { component: RedSquare; x: 20 }
+ Loader { sourceComponent: RedSquare }
+ Loader { sourceComponent: RedSquare; x: 20 }
}
\endqml
*/
@@ -328,6 +328,7 @@ QmlComponent::QmlComponent(QmlEngine *engine, QmlCompiledData *cc, int start, in
d->start = start;
d->count = count;
d->url = cc->url;
+ d->progress = 1.0;
}
/*!