aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorIvan Donchevskii <ivan.donchevskii@qt.io>2019-04-25 10:40:08 +0200
committerIvan Donchevskii <ivan.donchevskii@qt.io>2019-04-26 07:55:00 +0000
commit2d8ce380c9f97d403d8afc0e229bbb3123636ee4 (patch)
treeb380de78a59155d7a1e88ee770e375c1a6233fc3 /scripts
parent57c48630a8c54792937530571765aeee76061998 (diff)
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/generateClangFormatChecksUI.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/generateClangFormatChecksUI.py b/scripts/generateClangFormatChecksUI.py
index 250fc92f3a..cf38d44d92 100644
--- a/scripts/generateClangFormatChecksUI.py
+++ b/scripts/generateClangFormatChecksUI.py
@@ -38,7 +38,7 @@ def full_ui_content(checks):
<widget class="QWidget" name="ClangFormat::ClangFormatChecksWidget">
<property name="maximumSize">
<size>
- <width>450</width>
+ <width>480</width>
<height>16777215</height>
</size>
</property>
@@ -200,6 +200,11 @@ def createItem(key, value, index):
<enum>Qt::StrongFocus</enum>
</property>
'''
+ if key == 'Language':
+ value_item += ''' <property name="enabled">
+ <bool>false</bool>
+ </property>
+'''
if index > 0:
value_item += ''' <item>
<property name="text">