Mon, 04 Jul 2022 19:58:05 +0200
Little resizing fix in the code style checker dialog.
eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py | file | annotate | diff | comparison | revisions |
--- a/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py Mon Jul 04 19:44:38 2022 +0200 +++ b/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py Mon Jul 04 19:58:05 2022 +0200 @@ -18,7 +18,7 @@ from PyQt6.QtGui import QIcon from PyQt6.QtWidgets import ( QDialog, QTreeWidgetItem, QAbstractButton, QDialogButtonBox, QApplication, - QHeaderView, QListWidgetItem, QInputDialog, QLineEdit + QListWidgetItem, QInputDialog, QLineEdit ) from EricWidgets.EricApplication import ericApp @@ -1167,8 +1167,8 @@ self.showButton.setEnabled(False) else: self.showButton.setEnabled(True) - self.resultList.header().resizeSections( - QHeaderView.ResizeMode.ResizeToContents) + for col in range(self.resultList.columnCount()): + self.resultList.resizeColumnToContents(col) self.resultList.header().setStretchLastSection(True) if self.__detectedCodes: