diff options
| author | Mitch Curtis <mitch.curtis@qt.io> | 2023-09-11 16:19:18 +0800 |
|---|---|---|
| committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-09-14 02:00:59 +0000 |
| commit | 5e04b246246d4f1e9a3b15ffe422ec70c416ff75 (patch) | |
| tree | 10e43312fc47a0e911816e4f4b5e7db4b20f976d | |
| parent | c8276e977606c7c27c659a7a74c6361eb813347e (diff) | |
Doc: make Loader Sizing Behavior section easier to read
Most users use Loader for visual types, so the first sentence being
about non-visual types just makes it take that little bit longer to get
to the point for the majority of readers. Move it to the end.
Pick-to: 6.2
Change-Id: I736c067e9f73a1bc4fc27b4d358441b722241501
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
(cherry picked from commit 628dd94a7584195b4c7aa49c01f6bdc45a71d2c4)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 4bd397d21c75efc7c4028b34896f9a6fd97ecae1)
| -rw-r--r-- | src/quick/items/qquickloader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quick/items/qquickloader.cpp b/src/quick/items/qquickloader.cpp index fdee5d0b35..dcbac43aee 100644 --- a/src/quick/items/qquickloader.cpp +++ b/src/quick/items/qquickloader.cpp @@ -161,9 +161,7 @@ qreal QQuickLoaderPrivate::getImplicitHeight() const \section2 Loader Sizing Behavior - If the source component is not an Item type, Loader does not - apply any special sizing rules. When used to load visual types, - Loader applies the following sizing rules: + When used to load visual types, Loader applies the following sizing rules: \list \li If an explicit size is not specified for the Loader, the Loader @@ -190,6 +188,8 @@ qreal QQuickLoaderPrivate::getImplicitHeight() const \li The red rectangle will be 50x50, centered in the root item. \endtable + If the source component is not an Item type, Loader does not apply any + special sizing rules. \section2 Receiving Signals from Loaded Objects |
