29 |
29 |
30 def __init__(self, parent=None): |
30 def __init__(self, parent=None): |
31 """ |
31 """ |
32 Constructor |
32 Constructor |
33 |
33 |
34 @param parent the parent widget of this widget |
34 @param parent reference to the parent widget |
|
35 @type QWidget |
35 """ |
36 """ |
36 super().__init__(parent) |
37 super().__init__(parent) |
37 self.setObjectName("ExceptionLogger") |
38 self.setObjectName("ExceptionLogger") |
38 |
39 |
39 self.setWindowTitle(self.tr("Exceptions")) |
40 self.setWindowTitle(self.tr("Exceptions")) |
73 @pyqtSlot(QTreeWidgetItem) |
74 @pyqtSlot(QTreeWidgetItem) |
74 def __itemDoubleClicked(self, itm): |
75 def __itemDoubleClicked(self, itm): |
75 """ |
76 """ |
76 Private slot to handle the double click of an item. |
77 Private slot to handle the double click of an item. |
77 |
78 |
78 @param itm the item that was double clicked(QTreeWidgetItem), ignored |
79 @param itm reference to the item that was double clicked (ignored) |
|
80 @type QTreeWidgetItem |
79 """ |
81 """ |
80 self.__openSource() |
82 self.__openSource() |
81 |
83 |
82 def __showContextMenu(self, coord): |
84 def __showContextMenu(self, coord): |
83 """ |
85 """ |
84 Private slot to show the context menu of the listview. |
86 Private slot to show the context menu of the view. |
85 |
87 |
86 @param coord the global coordinates of the mouse pointer (QPoint) |
88 @param coord global coordinates of the mouse pointer |
|
89 @type QPoint |
87 """ |
90 """ |
88 itm = self.itemAt(coord) |
91 itm = self.itemAt(coord) |
89 coord = self.mapToGlobal(coord) |
92 coord = self.mapToGlobal(coord) |
90 if itm is None: |
93 if itm is None: |
91 self.backMenu.popup(coord) |
94 self.backMenu.popup(coord) |