CppEditor: Add an enum to the code style preview for braces settings

So the user gets feedback for all the checkboxes by default.

Fixes: QTCREATORBUG-27268
Change-Id: I3518a7693bf31ce6c48a12905b77713c591e1853
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2022-06-15 15:01:46 +02:00
parent 7d69b5b208
commit 120f3872d2

View File

@@ -135,6 +135,12 @@ static const char *DEFAULT_CODE_STYLE_SNIPPETS[]
"private:\n" "private:\n"
" int _a;\n" " int _a;\n"
" };\n" " };\n"
"enum class E\n"
"{\n"
" V1,\n"
" V2,\n"
" V3\n"
"};\n"
"}\n" "}\n"
"}\n", "}\n",
"#include \"bar.h\"\n" "#include \"bar.h\"\n"