eric7/UI/NotificationWidget.py

branch
eric7
changeset 8319
ea11a3948f40
parent 8318
962bce857696
child 8881
54e42bc2437a
--- a/eric7/UI/NotificationWidget.py	Sun May 16 20:07:24 2021 +0200
+++ b/eric7/UI/NotificationWidget.py	Mon May 17 19:58:15 2021 +0200
@@ -262,7 +262,7 @@
         
         if evt.button() == Qt.MouseButton.LeftButton:
             self.__dragPosition = (
-                evt.globalPos() - self.frameGeometry().topLeft()
+                evt.globalPosition().toPoint() - self.frameGeometry().topLeft()
             )
             self.setCursor(Qt.CursorShape.ClosedHandCursor)
             evt.accept()
@@ -286,5 +286,5 @@
         @param evt reference to the mouse event (QMouseEvent)
         """
         if evt.buttons() & Qt.MouseButton.LeftButton:
-            self.move(evt.globalPos() - self.__dragPosition)
+            self.move(evt.globalPosition().toPoint() - self.__dragPosition)
             evt.accept()

eric ide

mercurial