274 "res.x = window.scrollX;" |
274 "res.x = window.scrollX;" |
275 "res.y = window.scrollY;" |
275 "res.y = window.scrollY;" |
276 "return res;" |
276 "return res;" |
277 "})()" |
277 "})()" |
278 ) |
278 ) |
279 if pos is not None: |
279 pos = QPoint(0, 0) if pos is None else QPoint(pos["x"], pos["y"]) |
280 pos = QPoint(pos["x"], pos["y"]) |
|
281 else: |
|
282 pos = QPoint(0, 0) |
|
283 self.__scrollBarPositions[self.__previewedPath] = pos |
280 self.__scrollBarPositions[self.__previewedPath] = pos |
284 self.__hScrollBarAtEnd[self.__previewedPath] = False |
281 self.__hScrollBarAtEnd[self.__previewedPath] = False |
285 self.__vScrollBarAtEnd[self.__previewedPath] = False |
282 self.__vScrollBarAtEnd[self.__previewedPath] = False |
286 |
283 |
287 def __restoreScrollBarPositions(self): |
284 def __restoreScrollBarPositions(self): |