src/eric7/WebBrowser/AutoScroll/AutoScroller.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9473
3f23dbf37dbe
equal deleted inserted replaced
9412:45e7bb09c120 9413:80c06d472826
15 from PyQt6.QtCore import Qt, QObject, QRect, QEvent, QPoint 15 from PyQt6.QtCore import Qt, QObject, QRect, QEvent, QPoint
16 from PyQt6.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 from eric7 import Preferences
21 import UI.PixmapCache 21 from eric7.EricGui import EricPixmapCache
22 22
23 23
24 class AutoScroller(QObject): 24 class AutoScroller(QObject):
25 """ 25 """
26 Class implementing the automatic scroller. 26 Class implementing the automatic scroller.
212 horizontal = res["horizontal"] 212 horizontal = res["horizontal"]
213 if not vertical and not horizontal: 213 if not vertical and not horizontal:
214 return False 214 return False
215 215
216 if vertical and horizontal: 216 if vertical and horizontal:
217 self.__indicator.setPixmap(UI.PixmapCache.getPixmap("scrollAll")) 217 self.__indicator.setPixmap(EricPixmapCache.getPixmap("scrollAll"))
218 elif vertical: 218 elif vertical:
219 self.__indicator.setPixmap(UI.PixmapCache.getPixmap("scrollVertical")) 219 self.__indicator.setPixmap(EricPixmapCache.getPixmap("scrollVertical"))
220 else: 220 else:
221 self.__indicator.setPixmap(UI.PixmapCache.getPixmap("scrollHorizontal")) 221 self.__indicator.setPixmap(EricPixmapCache.getPixmap("scrollHorizontal"))
222 222
223 self.__view = view 223 self.__view = view
224 p = QPoint( 224 p = QPoint(
225 pos.x() - self.__indicator.pixmap().width() // 2, 225 pos.x() - self.__indicator.pixmap().width() // 2,
226 pos.y() - self.__indicator.pixmap().height() // 2, 226 pos.y() - self.__indicator.pixmap().height() // 2,

eric ide

mercurial