73 """ |
73 """ |
74 if self.__menu: |
74 if self.__menu: |
75 pos = self.mapToGlobal(QPoint(0, self.height())) |
75 pos = self.mapToGlobal(QPoint(0, self.height())) |
76 self.__menu.exec(pos) |
76 self.__menu.exec(pos) |
77 |
77 |
78 def paintEvent(self, evt): |
78 def paintEvent(self, _evt): |
79 """ |
79 """ |
80 Protected method handling a paint event. |
80 Protected method handling a paint event. |
81 |
81 |
82 @param evt reference to the paint event |
82 @param _evt reference to the paint event (unused) |
83 @type QPaintEvent |
83 @type QPaintEvent |
84 """ |
84 """ |
85 painter = QPainter(self) |
85 painter = QPainter(self) |
86 |
86 |
87 if self.__image is not None and not self.__image.isNull(): |
87 if self.__image is not None and not self.__image.isNull(): |