eric6/E5Gui/E5ErrorMessageFilterDialog.py

changeset 8169
139bd30c52c2
parent 8157
800c09ec0956
child 8218
7c09585bd960
equal deleted inserted replaced
8168:bdb0258faf42 8169:139bd30c52c2
5 5
6 """ 6 """
7 Module implementing a dialog to manage the list of messages to be ignored. 7 Module implementing a dialog to manage the list of messages to be ignored.
8 """ 8 """
9 9
10 ##from PyQt5.QtCore import pyqtSlot
11 from PyQt5.QtWidgets import QDialog 10 from PyQt5.QtWidgets import QDialog
12 11
13 from .Ui_E5ErrorMessageFilterDialog import Ui_E5ErrorMessageFilterDialog 12 from .Ui_E5ErrorMessageFilterDialog import Ui_E5ErrorMessageFilterDialog
14 13
15 14
27 @type QWidget 26 @type QWidget
28 """ 27 """
29 super(E5ErrorMessageFilterDialog, self).__init__(parent) 28 super(E5ErrorMessageFilterDialog, self).__init__(parent)
30 self.setupUi(self) 29 self.setupUi(self)
31 30
32 ## self.__defaultFilters = defaultFilters[:]
33 ##
34 self.filtersEditWidget.setList(messageFilters) 31 self.filtersEditWidget.setList(messageFilters)
35 self.filtersEditWidget.setListWhatsThis(self.tr( 32 self.filtersEditWidget.setListWhatsThis(self.tr(
36 "<b>Error Message Filters</b>" 33 "<b>Error Message Filters</b>"
37 "<p>This list shows the configured message filters used to" 34 "<p>This list shows the configured message filters used to"
38 " suppress error messages from within Qt.</p>" 35 " suppress error messages from within Qt.</p>"
39 "<p>A default list of message filters is added to this" 36 "<p>A default list of message filters is added to this"
40 " user list.</p>" 37 " user list.</p>"
41 )) 38 ))
42 ##
43 ## self.filtersEditWidget.setDefaultVisible(True)
44 ## self.filtersEditWidget.setToDefault.connect(self.__setToDefault)
45 ##
46 ## @pyqtSlot()
47 ## def __setToDefault(self):
48 ## """
49 ## Private slot to set the message list to the default values.
50 ## """
51 ## self.filtersEditWidget.setList(self.__defaultFilters)
52 39
53 def getFilters(self): 40 def getFilters(self):
54 """ 41 """
55 Public method to get the list of message filters. 42 Public method to get the list of message filters.
56 43

eric ide

mercurial