Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py

changeset 4511
b5e4e7efa904
parent 4506
57666e501a42
child 4631
5c1a96925da4
diff -r 43437fc9f4c9 -r b5e4e7efa904 Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py
--- a/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py	Wed Oct 28 20:15:46 2015 +0100
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py	Thu Oct 29 19:06:49 2015 +0100
@@ -32,6 +32,7 @@
         super(CodeStyleCodeSelectionDialog, self).__init__(parent)
         self.setupUi(self)
         
+        self.codeTable.headerItem().setText(self.codeTable.columnCount(), "")
         codeList = [code.strip() for code in codes.split(",") if code.strip()]
         
         from .translations import _messages, _messages_sample_args
@@ -61,6 +62,9 @@
             if code in codeList:
                 itm.setSelected(True)
                 codeList.remove(code)
+        self.codeTable.resizeColumnToContents(0)
+        self.codeTable.resizeColumnToContents(1)
+        self.codeTable.header().setStretchLastSection(True)
         
         self.__extraCodes = codeList[:]
     

eric ide

mercurial