eric7/WebBrowser/AutoScroll/AutoScroller.py

branch
eric7
changeset 8318
962bce857696
parent 8312
800c432b34c8
child 8319
ea11a3948f40
equal deleted inserted replaced
8316:0c7a44af84bc 8318:962bce857696
10 # 10 #
11 # This module is based on the Qupzilla auto scroller. 11 # This module is based on the Qupzilla auto scroller.
12 # Copyright (C) 2014 David Rosca <nowrep@gmail.com> 12 # Copyright (C) 2014 David Rosca <nowrep@gmail.com>
13 # 13 #
14 14
15 from PyQt5.QtCore import Qt, QObject, QRect, QEvent, QPoint 15 from PyQt6.QtCore import Qt, QObject, QRect, QEvent, QPoint
16 from PyQt5.QtWidgets import QApplication, QLabel 16 from PyQt6.QtWidgets import QApplication, QLabel
17 17
18 from .FrameScroller import FrameScroller 18 from .FrameScroller import FrameScroller
19 19
20 import Preferences 20 import Preferences
21 import UI.PixmapCache 21 import UI.PixmapCache
103 # test for start 103 # test for start
104 if ( 104 if (
105 middleButton and 105 middleButton and
106 (self.__view != view or not self.__indicator.isVisible()) 106 (self.__view != view or not self.__indicator.isVisible())
107 ): 107 ):
108 return self.__showIndicator(view, evt.pos()) 108 return self.__showIndicator(view, evt.position().toPoint())
109 109
110 # test for stop 110 # test for stop
111 if self.__indicator.isVisible(): 111 if self.__indicator.isVisible():
112 self.__stopScrolling() 112 self.__stopScrolling()
113 return True 113 return True

eric ide

mercurial