--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.ui Wed Jan 13 19:12:35 2021 +0100 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.ui Wed Jan 13 20:13:26 2021 +0100 @@ -233,18 +233,6 @@ <string>Specific Options</string> </attribute> <layout class="QVBoxLayout" name="verticalLayout_4"> - <property name="leftMargin"> - <number>1</number> - </property> - <property name="topMargin"> - <number>1</number> - </property> - <property name="rightMargin"> - <number>1</number> - </property> - <property name="bottomMargin"> - <number>1</number> - </property> <item> <widget class="QScrollArea" name="scrollArea"> <property name="frameShape"> @@ -263,12 +251,12 @@ <property name="geometry"> <rect> <x>0</x> - <y>0</y> - <width>637</width> - <height>884</height> + <y>-628</y> + <width>611</width> + <height>1178</height> </rect> </property> - <layout class="QVBoxLayout" name="verticalLayout_6"> + <layout class="QVBoxLayout" name="verticalLayout_3"> <item> <widget class="QGroupBox" name="groupBox"> <property name="title"> @@ -652,8 +640,8 @@ <property name="title"> <string>Commented Code</string> </property> - <layout class="QVBoxLayout" name="verticalLayout_3"> - <item> + <layout class="QGridLayout" name="gridLayout_8"> + <item row="0" column="0" colspan="3"> <widget class="QCheckBox" name="aggressiveCheckBox"> <property name="toolTip"> <string>Select to search for commented code more aggressively. This may increase the number of false positives.</string> @@ -663,6 +651,56 @@ </property> </widget> </item> + <item row="1" column="0"> + <widget class="QLabel" name="label_30"> + <property name="text"> + <string>Whitelist:</string> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QListWidget" name="whitelistWidget"/> + </item> + <item row="1" column="2"> + <layout class="QVBoxLayout" name="verticalLayout_6"> + <item alignment="Qt::AlignHCenter"> + <widget class="QToolButton" name="addWhitelistButton"> + <property name="toolTip"> + <string>Press to add a commented code whitelist pattern</string> + </property> + <property name="text"> + <string notr="true">+</string> + </property> + </widget> + </item> + <item alignment="Qt::AlignHCenter"> + <widget class="QToolButton" name="deleteWhitelistButton"> + <property name="toolTip"> + <string>Press to delete the selected entries</string> + </property> + <property name="text"> + <string notr="true">-</string> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_6"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> </layout> </widget> </item> @@ -1430,6 +1468,9 @@ <tabstop>addBuiltinButton</tabstop> <tabstop>deleteBuiltinButton</tabstop> <tabstop>aggressiveCheckBox</tabstop> + <tabstop>whitelistWidget</tabstop> + <tabstop>addWhitelistButton</tabstop> + <tabstop>deleteWhitelistButton</tabstop> <tabstop>complexitySpinBox</tabstop> <tabstop>lineComplexitySpinBox</tabstop> <tabstop>lineComplexityScoreSpinBox</tabstop>