ClangFormat: Fix UI issues

- 'Default' values remain so after save/load
 - the language is fixed to C++
 - the project settings are shown correctly
 - fix parsing configuration file
 - do not trigger slots when we fill the table

Change-Id: I91b477721b5084803324cd38d0cfeb9d5650dd9f
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Ivan Donchevskii
2019-04-25 10:40:08 +02:00
parent 57c48630a8
commit 2d8ce380c9
6 changed files with 149 additions and 80 deletions

View File

@@ -40,6 +40,9 @@ void createStyleFileIfNeeded(bool isGlobal);
QString currentProjectUniqueId();
std::string currentProjectConfigText();
std::string currentGlobalConfigText();
clang::format::FormatStyle currentProjectStyle();
clang::format::FormatStyle currentGlobalStyle();