eric7/UI/NotificationWidget.py

branch
eric7
changeset 8318
962bce857696
parent 8312
800c432b34c8
child 8319
ea11a3948f40
--- a/eric7/UI/NotificationWidget.py	Sun May 16 11:43:59 2021 +0200
+++ b/eric7/UI/NotificationWidget.py	Sun May 16 20:07:24 2021 +0200
@@ -10,8 +10,8 @@
 import contextlib
 import enum
 
-from PyQt5.QtCore import Qt, QTimer, QPoint
-from PyQt5.QtWidgets import QFrame, QWidget, QVBoxLayout
+from PyQt6.QtCore import Qt, QTimer, QPoint
+from PyQt6.QtWidgets import QFrame, QWidget, QVBoxLayout
 
 from .Ui_NotificationFrame import Ui_NotificationFrame
 
@@ -203,7 +203,7 @@
                 screen = self.screen()
             except AttributeError:
                 # < Qt 5.15
-                from PyQt5.QtGui import QGuiApplication
+                from PyQt6.QtGui import QGuiApplication
                 screen = QGuiApplication.screenAt(pos)
             screenGeom = screen.geometry()
             
@@ -254,7 +254,7 @@
         @param evt reference to the mouse event (QMouseEvent)
         """
         if not self.__settingPosition:
-            clickedLabel = self.childAt(evt.pos())
+            clickedLabel = self.childAt(evt.position().toPoint())
             if clickedLabel:
                 clickedNotification = clickedLabel.parent()
                 self.__removeNotification(clickedNotification)

eric ide

mercurial