1152 @type bool |
1152 @type bool |
1153 """ |
1153 """ |
1154 from .CodeStyleCodeSelectionDialog import CodeStyleCodeSelectionDialog |
1154 from .CodeStyleCodeSelectionDialog import CodeStyleCodeSelectionDialog |
1155 dlg = CodeStyleCodeSelectionDialog(edit.text(), categories, |
1155 dlg = CodeStyleCodeSelectionDialog(edit.text(), categories, |
1156 showFixCodes, self) |
1156 showFixCodes, self) |
1157 if dlg.exec_() == QDialog.Accepted: |
1157 if dlg.exec() == QDialog.Accepted: |
1158 edit.setText(dlg.getSelectedCodes()) |
1158 edit.setText(dlg.getSelectedCodes()) |
1159 |
1159 |
1160 @pyqtSlot() |
1160 @pyqtSlot() |
1161 def on_excludeMessagesSelectButton_clicked(self): |
1161 def on_excludeMessagesSelectButton_clicked(self): |
1162 """ |
1162 """ |
1279 """ |
1279 """ |
1280 Private slot to show the statistics dialog. |
1280 Private slot to show the statistics dialog. |
1281 """ |
1281 """ |
1282 from .CodeStyleStatisticsDialog import CodeStyleStatisticsDialog |
1282 from .CodeStyleStatisticsDialog import CodeStyleStatisticsDialog |
1283 dlg = CodeStyleStatisticsDialog(self.__statistics, self) |
1283 dlg = CodeStyleStatisticsDialog(self.__statistics, self) |
1284 dlg.exec_() |
1284 dlg.exec() |
1285 |
1285 |
1286 @pyqtSlot() |
1286 @pyqtSlot() |
1287 def on_loadDefaultButton_clicked(self): |
1287 def on_loadDefaultButton_clicked(self): |
1288 """ |
1288 """ |
1289 Private slot to load the default configuration values. |
1289 Private slot to load the default configuration values. |
1774 """ |
1774 """ |
1775 from .CodeStyleAddBuiltinIgnoreDialog import ( |
1775 from .CodeStyleAddBuiltinIgnoreDialog import ( |
1776 CodeStyleAddBuiltinIgnoreDialog |
1776 CodeStyleAddBuiltinIgnoreDialog |
1777 ) |
1777 ) |
1778 dlg = CodeStyleAddBuiltinIgnoreDialog(self) |
1778 dlg = CodeStyleAddBuiltinIgnoreDialog(self) |
1779 if dlg.exec_() == QDialog.Accepted: |
1779 if dlg.exec() == QDialog.Accepted: |
1780 left, right = dlg.getData() |
1780 left, right = dlg.getData() |
1781 QTreeWidgetItem(self.builtinsAssignmentList, [left, right]) |
1781 QTreeWidgetItem(self.builtinsAssignmentList, [left, right]) |
1782 |
1782 |
1783 @pyqtSlot() |
1783 @pyqtSlot() |
1784 def on_deleteBuiltinButton_clicked(self): |
1784 def on_deleteBuiltinButton_clicked(self): |