From 58e43d9287f67035df148884289d5bf5f0df881e Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Tue, 23 Apr 2019 10:45:50 +0200 Subject: [PATCH] Doc: Do not mention the colors used for errors and warnings ...when underlining issues in the code editor. However, describe how to modify the colors. Change-Id: I8a4db7bfac22f0f76b9f596250a9cf6569fe3392 Reviewed-by: Nikolai Kosjar --- doc/src/editors/creator-code-syntax.qdoc | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/doc/src/editors/creator-code-syntax.qdoc b/doc/src/editors/creator-code-syntax.qdoc index bf68f1e41a5..e183c20f5e1 100644 --- a/doc/src/editors/creator-code-syntax.qdoc +++ b/doc/src/editors/creator-code-syntax.qdoc @@ -38,17 +38,20 @@ structure. \if defined(qtcreator) - \list - \li Syntax errors are underlined in red. + In the following screenshot, \QC points out an error, because a semicolon is + missing at the end of the line: - In the following screenshot, a semicolon is missing at the end - of the line. - \image qtcreator-syntaxerror.png - \li Semantic errors and warnings are underlined in olive. + \image qtcreator-syntaxerror.png - In the following screenshot, the variable is not used. - \image qtcreator-semanticerror.png - \endlist + In the following screenshot, \QC issues a warning, because the variable is + not used: + + \image qtcreator-semanticerror.png + + To modify the colors used for underlining errors and warnings, select + \uicontrol Tools > \uicontrol Options > \uicontrol {Text Editor} > + \uicontrol {Fonts & Colors} > \uicontrol Copy, and select new colors for + \uicontrol Error and \uicontrol Warning. \section1 Viewing Annotations