67 """ |
67 """ |
68 if self.__enabled and self.__indicator.isVisible(): |
68 if self.__enabled and self.__indicator.isVisible(): |
69 rect = self.__indicatorGlobalRect() |
69 rect = self.__indicatorGlobalRect() |
70 xlen = 0 |
70 xlen = 0 |
71 ylen = 0 |
71 ylen = 0 |
72 egp = evt.globalPos() |
72 egp = evt.globalPosition().toPoint() |
73 |
73 |
74 if rect.left() > egp.x(): |
74 if rect.left() > egp.x(): |
75 xlen = egp.x() - rect.left() |
75 xlen = egp.x() - rect.left() |
76 elif rect.right() < egp.x(): |
76 elif rect.right() < egp.x(): |
77 xlen = egp.x() - rect.right() |
77 xlen = egp.x() - rect.right() |
123 @return flag indicating, that the event was handled |
123 @return flag indicating, that the event was handled |
124 @rtype bool |
124 @rtype bool |
125 """ |
125 """ |
126 if self.__enabled and self.__indicator.isVisible(): |
126 if self.__enabled and self.__indicator.isVisible(): |
127 if not self.__indicatorGlobalRect().contains( |
127 if not self.__indicatorGlobalRect().contains( |
128 evt.globalPos()): |
128 evt.globalPosition().toPoint()): |
129 self.__stopScrolling() |
129 self.__stopScrolling() |
130 return True |
130 return True |
131 |
131 |
132 return False |
132 return False |
133 |
133 |