aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2018-02-14 10:03:26 +0100
committerMitch Curtis <mitch.curtis@qt.io>2018-02-20 10:49:03 +0000
commit961c3714d01f8f3fd81171040784767bf39751ca (patch)
treed019fe87096fd5f4e997ffb47a0f8e9daf62bb7b /tests
parent2f784a544ec4dccaa70ee1bcec71c8e6c2bd5d99 (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 'tests')
-rw-r--r--tests/auto/quick/qquicklayouts/data/tst_rowlayout.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/quick/qquicklayouts/data/tst_rowlayout.qml b/tests/auto/quick/qquicklayouts/data/tst_rowlayout.qml
index 4e9e41d42e..d6231f28fd 100644
--- a/tests/auto/quick/qquicklayouts/data/tst_rowlayout.qml
+++ b/tests/auto/quick/qquicklayouts/data/tst_rowlayout.qml
@@ -1058,7 +1058,8 @@ Item {
{
var fullPath = Qt.resolvedUrl("tst_rowlayout.qml")
for (var i = 0; i < 7; ++i) {
- ignoreWarning(fullPath + ":" + (1013 + 5*i) +":17: QML Item: Detected anchors on an item that is part of a layout. This is undefined behavior.")
+ ignoreWarning(fullPath + ":" + (1013 + 5*i) +":17: QML Item: Detected anchors on an item that is managed by a layout. "
+ + "This is undefined behavior; use Layout.alignment instead.")
}
var layout = itemsWithAnchorsLayout_Component.createObject(container)
waitForRendering(layout)