260 self.__removeNotification(clickedNotification) |
260 self.__removeNotification(clickedNotification) |
261 return |
261 return |
262 |
262 |
263 if evt.button() == Qt.MouseButton.LeftButton: |
263 if evt.button() == Qt.MouseButton.LeftButton: |
264 self.__dragPosition = ( |
264 self.__dragPosition = ( |
265 evt.globalPos() - self.frameGeometry().topLeft() |
265 evt.globalPosition().toPoint() - self.frameGeometry().topLeft() |
266 ) |
266 ) |
267 self.setCursor(Qt.CursorShape.ClosedHandCursor) |
267 self.setCursor(Qt.CursorShape.ClosedHandCursor) |
268 evt.accept() |
268 evt.accept() |
269 |
269 |
270 def mouseReleaseEvent(self, evt): |
270 def mouseReleaseEvent(self, evt): |