diff options
author | Liang Qi <liang.qi@theqtcompany.com> | 2015-06-30 09:08:35 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@theqtcompany.com> | 2015-06-30 09:08:35 +0200 |
commit | 5112821a37ab749f758e354e84703df2d09d5471 (patch) | |
tree | 8f19ba6e7661109675b5e1e9b0ddae94b4c96d4f /src/quick/items/qquickloader.cpp | |
parent | 5d2ea1d5e9d6e29a16d0e9333cfc2dc8e7c5b677 (diff) | |
parent | a3f686cf7cc14ff481b972b1170a7ff76d0e0fd0 (diff) |
Merge remote-tracking branch 'origin/5.5' into dev
Conflicts:
.qmake.conf
src/qml/qml/qqmlengine.cpp
src/quick/items/qquickitemsmodule.cpp
tools/qml/main.cpp
Change-Id: Ida8daf6b4d7e675385f2f5514c446e52dedaf136
Diffstat (limited to 'src/quick/items/qquickloader.cpp')
-rw-r--r-- | src/quick/items/qquickloader.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/quick/items/qquickloader.cpp b/src/quick/items/qquickloader.cpp index c1e3fbb4e0..df09780895 100644 --- a/src/quick/items/qquickloader.cpp +++ b/src/quick/items/qquickloader.cpp @@ -217,7 +217,7 @@ qreal QQuickLoaderPrivate::getImplicitHeight() const loads \c MyItem.qml, and is able to receive the \c message signal from the loaded item through a \l Connections object: - \table + \table 70% \row \li application.qml \li MyItem.qml @@ -263,7 +263,6 @@ qreal QQuickLoaderPrivate::getImplicitHeight() const In some cases you may wish to use a Loader within a view delegate to improve delegate loading performance. This works well in most cases, but there is one important issue to - be aware of related to the \l{QtQml::Component#Creation Context}{creation context} of a Component. In the following example, the \c index context property inserted by the ListView into \c delegateComponent's context will be inaccessible to Text, as the Loader will use the creation context of \c myComponent as the parent @@ -516,7 +515,7 @@ void QQuickLoader::loadFromSourceComponent() is changed after calling this function but prior to setting the loader \l active. Example: - \table + \table 70% \row \li \qml @@ -545,11 +544,13 @@ void QQuickLoader::loadFromSourceComponent() Item { Loader { id: squareLoader - onLoaded: console.log(squareLoader.item.width); // prints [10], not [30] + onLoaded: console.log(squareLoader.item.width); + // prints [10], not [30] } Component.onCompleted: { - squareLoader.setSource("ExampleComponent.qml", { "color": "blue" }); + squareLoader.setSource("ExampleComponent.qml", + { "color": "blue" }); // will trigger the onLoaded code when complete. } } |