eric7/WebBrowser/WebBrowserTabBar.py

branch
eric7
changeset 8318
962bce857696
parent 8312
800c432b34c8
child 8356
68ec9c3d4de5
--- a/eric7/WebBrowser/WebBrowserTabBar.py	Sun May 16 11:43:59 2021 +0200
+++ b/eric7/WebBrowser/WebBrowserTabBar.py	Sun May 16 20:07:24 2021 +0200
@@ -7,8 +7,8 @@
 Module implementing a specialized tab bar for the web browser.
 """
 
-from PyQt5.QtCore import Qt, QPoint, QTimer, QEvent
-from PyQt5.QtWidgets import QLabel
+from PyQt6.QtCore import Qt, QPoint, QTimer, QEvent
+from PyQt6.QtWidgets import QLabel
 
 from E5Gui.E5TabWidget import E5WheelTabBar
 from E5Gui.E5PassivePopup import E5PassivePopup, E5PassivePopupStyle
@@ -99,7 +99,7 @@
             i = 0
             tabIndex = -1
             while i < self.count() and tabIndex == -1:
-                if self.tabRect(i).contains(evt.pos()):
+                if self.tabRect(i).contains(evt.position().toPoint()):
                     tabIndex = i
                 i += 1
             

eric ide

mercurial