From 961c3714d01f8f3fd81171040784767bf39751ca Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Wed, 14 Feb 2018 10:03:26 +0100 Subject: 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 --- tests/auto/quick/qquicklayouts/data/tst_rowlayout.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/auto/quick') 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) -- cgit v1.2.3