diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2018-02-14 10:03:26 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-02-20 10:49:03 +0000 |
commit | 961c3714d01f8f3fd81171040784767bf39751ca (patch) | |
tree | d019fe87096fd5f4e997ffb47a0f8e9daf62bb7b /src | |
parent | 2f784a544ec4dccaa70ee1bcec71c8e6c2bd5d99 (diff) |
Layout: improve warning message when anchors are detected
- Use the more explicit term "manage" to make it clear that the warning
only applies to items that are direct children of a layout type.
- Instruct users towards the proper way to position items within a
layout: Layout.alignment.
Change-Id: Id13af95457a689e41aeaead1f9a0f958f095fca9
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/imports/layouts/qquicklayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/layouts/qquicklayout.cpp b/src/imports/layouts/qquicklayout.cpp index c1e34813c6..3bfdea5be7 100644 --- a/src/imports/layouts/qquicklayout.cpp +++ b/src/imports/layouts/qquicklayout.cpp @@ -773,7 +773,7 @@ void QQuickLayout::checkAnchors(QQuickItem *item) const { QQuickAnchors *anchors = QQuickItemPrivate::get(item)->_anchors; if (anchors && anchors->activeDirections()) - qmlWarning(item) << "Detected anchors on an item that is part of a layout. This is undefined behavior."; + qmlWarning(item) << "Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead."; } void QQuickLayout::itemChange(ItemChange change, const ItemChangeData &value) |