14 |
14 |
15 class EricErrorMessageFilterDialog(QDialog, Ui_EricErrorMessageFilterDialog): |
15 class EricErrorMessageFilterDialog(QDialog, Ui_EricErrorMessageFilterDialog): |
16 """ |
16 """ |
17 Class implementing a dialog to manage the list of messages to be ignored. |
17 Class implementing a dialog to manage the list of messages to be ignored. |
18 """ |
18 """ |
|
19 |
19 def __init__(self, messageFilters, parent=None): |
20 def __init__(self, messageFilters, parent=None): |
20 """ |
21 """ |
21 Constructor |
22 Constructor |
22 |
23 |
23 @param messageFilters list of message filters to be edited |
24 @param messageFilters list of message filters to be edited |
24 @type list of str |
25 @type list of str |
25 @param parent reference to the parent widget |
26 @param parent reference to the parent widget |
26 @type QWidget |
27 @type QWidget |
27 """ |
28 """ |
28 super().__init__(parent) |
29 super().__init__(parent) |
29 self.setupUi(self) |
30 self.setupUi(self) |
30 |
31 |
31 self.filtersEditWidget.setList(messageFilters) |
32 self.filtersEditWidget.setList(messageFilters) |
32 self.filtersEditWidget.setListWhatsThis(self.tr( |
33 self.filtersEditWidget.setListWhatsThis( |
33 "<b>Error Message Filters</b>" |
34 self.tr( |
34 "<p>This list shows the configured message filters used to" |
35 "<b>Error Message Filters</b>" |
35 " suppress error messages from within Qt.</p>" |
36 "<p>This list shows the configured message filters used to" |
36 "<p>A default list of message filters is added to this" |
37 " suppress error messages from within Qt.</p>" |
37 " user list.</p>" |
38 "<p>A default list of message filters is added to this" |
38 )) |
39 " user list.</p>" |
39 |
40 ) |
|
41 ) |
|
42 |
40 def getFilters(self): |
43 def getFilters(self): |
41 """ |
44 """ |
42 Public method to get the list of message filters. |
45 Public method to get the list of message filters. |
43 |
46 |
44 @return error message filters (list of strings) |
47 @return error message filters (list of strings) |
45 """ |
48 """ |
46 return self.filtersEditWidget.getList() |
49 return self.filtersEditWidget.getList() |