eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py

branch
eric7
changeset 9206
44dc7df5d1e4
parent 9182
bc72e2fc0d8e
equal deleted inserted replaced
9205:b75da2ba2a1a 9206:44dc7df5d1e4
16 16
17 from PyQt6.QtCore import pyqtSlot, Qt, QTimer, QCoreApplication 17 from PyQt6.QtCore import pyqtSlot, Qt, QTimer, QCoreApplication
18 from PyQt6.QtGui import QIcon 18 from PyQt6.QtGui import QIcon
19 from PyQt6.QtWidgets import ( 19 from PyQt6.QtWidgets import (
20 QDialog, QTreeWidgetItem, QAbstractButton, QDialogButtonBox, QApplication, 20 QDialog, QTreeWidgetItem, QAbstractButton, QDialogButtonBox, QApplication,
21 QHeaderView, QListWidgetItem, QInputDialog, QLineEdit 21 QListWidgetItem, QInputDialog, QLineEdit
22 ) 22 )
23 23
24 from EricWidgets.EricApplication import ericApp 24 from EricWidgets.EricApplication import ericApp
25 25
26 from .Ui_CodeStyleCheckerDialog import Ui_CodeStyleCheckerDialog 26 from .Ui_CodeStyleCheckerDialog import Ui_CodeStyleCheckerDialog
1165 [self.tr('No files found (check your ignore list).')]) 1165 [self.tr('No files found (check your ignore list).')])
1166 QApplication.processEvents() 1166 QApplication.processEvents()
1167 self.showButton.setEnabled(False) 1167 self.showButton.setEnabled(False)
1168 else: 1168 else:
1169 self.showButton.setEnabled(True) 1169 self.showButton.setEnabled(True)
1170 self.resultList.header().resizeSections( 1170 for col in range(self.resultList.columnCount()):
1171 QHeaderView.ResizeMode.ResizeToContents) 1171 self.resultList.resizeColumnToContents(col)
1172 self.resultList.header().setStretchLastSection(True) 1172 self.resultList.header().setStretchLastSection(True)
1173 1173
1174 if self.__detectedCodes: 1174 if self.__detectedCodes:
1175 self.filterComboBox.addItem("") 1175 self.filterComboBox.addItem("")
1176 self.filterComboBox.addItems(sorted(set(self.__detectedCodes))) 1176 self.filterComboBox.addItems(sorted(set(self.__detectedCodes)))

eric ide

mercurial