28 """ |
28 """ |
29 Constructor |
29 Constructor |
30 |
30 |
31 @param parent reference to the parent widget (QWidget) |
31 @param parent reference to the parent widget (QWidget) |
32 """ |
32 """ |
33 super(GreaseMonkeyConfigurationListWidget, self).__init__(parent) |
33 super().__init__(parent) |
34 |
34 |
35 self.__delegate = GreaseMonkeyConfigurationListDelegate(self) |
35 self.__delegate = GreaseMonkeyConfigurationListDelegate(self) |
36 self.setItemDelegate(self.__delegate) |
36 self.setItemDelegate(self.__delegate) |
37 |
37 |
38 def __containsRemoveIcon(self, pos): |
38 def __containsRemoveIcon(self, pos): |
65 """ |
65 """ |
66 if self.__containsRemoveIcon(evt.pos()): |
66 if self.__containsRemoveIcon(evt.pos()): |
67 self.removeItemRequested.emit(self.itemAt(evt.pos())) |
67 self.removeItemRequested.emit(self.itemAt(evt.pos())) |
68 return |
68 return |
69 |
69 |
70 super(GreaseMonkeyConfigurationListWidget, self).mousePressEvent(evt) |
70 super().mousePressEvent(evt) |
71 |
71 |
72 def mouseDoubleClickEvent(self, evt): |
72 def mouseDoubleClickEvent(self, evt): |
73 """ |
73 """ |
74 Protected method handling mouse double click events. |
74 Protected method handling mouse double click events. |
75 |
75 |