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