Fixed a backward compatibility issue. eric7

Fri, 12 Nov 2021 17:57:29 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 12 Nov 2021 17:57:29 +0100
branch
eric7
changeset 8766
77a85cb69d47
parent 8765
8d33448d71ef
child 8767
d82b6440eb61

Fixed a backward compatibility issue.

eric7/QScintilla/Editor.py file | annotate | diff | comparison | revisions
eric7/QScintilla/MiniEditor.py file | annotate | diff | comparison | revisions
--- a/eric7/QScintilla/Editor.py	Tue Nov 09 19:36:06 2021 +0100
+++ b/eric7/QScintilla/Editor.py	Fri Nov 12 17:57:29 2021 +0100
@@ -7202,7 +7202,7 @@
                 Qt.KeyboardModifier.AltModifier
             ))
         ):
-            line, index = self.lineIndexFromPoint(event.pos())
+            line, index = self.lineIndexFromPoint(event.position().toPoint())
             self.addCursor(line, index)
             event.accept()
         else:
--- a/eric7/QScintilla/MiniEditor.py	Tue Nov 09 19:36:06 2021 +0100
+++ b/eric7/QScintilla/MiniEditor.py	Fri Nov 12 17:57:29 2021 +0100
@@ -161,7 +161,7 @@
                 Qt.KeyboardModifier.AltModifier
             ))
         ):
-            line, index = self.lineIndexFromPoint(event.pos())
+            line, index = self.lineIndexFromPoint(event.position().toPoint())
             self.addCursor(line, index)
             event.accept()
         else:

eric ide

mercurial