40 |
40 |
41 self.setWindowFlags(POPUP_FLAGS) |
41 self.setWindowFlags(POPUP_FLAGS) |
42 self.setFrameStyle(QFrame.Box | QFrame.Plain) |
42 self.setFrameStyle(QFrame.Box | QFrame.Plain) |
43 self.setLineWidth(2) |
43 self.setLineWidth(2) |
44 self.__hideTimer.timeout.connect(self.hide) |
44 self.__hideTimer.timeout.connect(self.hide) |
45 self.clicked[()].connect(self.hide) |
45 self.clicked.connect(self.hide) |
46 |
46 |
47 def setView(self, child): |
47 def setView(self, child): |
48 """ |
48 """ |
49 Public method to set the message view. |
49 Public method to set the message view. |
50 |
50 |
131 """ |
131 """ |
132 Protected method to handle a mouse release event. |
132 Protected method to handle a mouse release event. |
133 |
133 |
134 @param evt reference to the mouse event (QMouseEvent) |
134 @param evt reference to the mouse event (QMouseEvent) |
135 """ |
135 """ |
136 self.clicked[()].emit() |
136 self.clicked.emit() |
137 self.clicked[(QPoint, )].emit(evt.pos()) |
137 self.clicked.emit(evt.pos()) |
138 |
138 |
139 def hideEvent(self, evt): |
139 def hideEvent(self, evt): |
140 """ |
140 """ |
141 Protected method to handle the hide event. |
141 Protected method to handle the hide event. |
142 |
142 |