From 49546c4f482373cd2341516ebb98a83e183189ae Mon Sep 17 00:00:00 2001 From: Riitta-Leena Miettinen Date: Wed, 23 Nov 2022 14:19:14 +0100 Subject: [PATCH] Doc: Add M401 and M402 code syntax error and warning messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: QTCREATORBUG-28482 Change-Id: I3a8976c0c96c102c9f745a1643d3a02e062658ac Reviewed-by: Mats Honkamaa Reviewed-by: Henning Gründl Reviewed-by: Thomas Hartmann --- doc/qtcreator/src/editors/creator-code-syntax.qdoc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/qtcreator/src/editors/creator-code-syntax.qdoc b/doc/qtcreator/src/editors/creator-code-syntax.qdoc index ae86067e9f8..f4f57e6488e 100644 --- a/doc/qtcreator/src/editors/creator-code-syntax.qdoc +++ b/doc/qtcreator/src/editors/creator-code-syntax.qdoc @@ -682,6 +682,20 @@ \li An import statement has been added twice. For more information, see \l{Import Statements}. + \row + \li M401 + \li Error + \li Do not reference the root item as alias + \li The alias property cannot reference the root component directly. + Create an instance of the component instead. + + \row + \li M402 + \li Warning + \li Avoid referencing the root item in a hierarchy + \li The alias property cannot reference the root component in a + hierarchy. Create an instance of the component instead. + \endtable \section1 Resetting the Code Model