From 120f3872d23933d8bcdae209b270b9a0af47dc6d Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Wed, 15 Jun 2022 15:01:46 +0200 Subject: [PATCH] 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: Reviewed-by: Qt CI Bot Reviewed-by: Christian Stenger --- src/plugins/cppeditor/cppcodestylesnippets.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/cppeditor/cppcodestylesnippets.h b/src/plugins/cppeditor/cppcodestylesnippets.h index d58a728f233..83cb3555d54 100644 --- a/src/plugins/cppeditor/cppcodestylesnippets.h +++ b/src/plugins/cppeditor/cppcodestylesnippets.h @@ -135,6 +135,12 @@ static const char *DEFAULT_CODE_STYLE_SNIPPETS[] "private:\n" " int _a;\n" " };\n" + "enum class E\n" + "{\n" + " V1,\n" + " V2,\n" + " V3\n" + "};\n" "}\n" "}\n", "#include \"bar.h\"\n"