123 |
123 |
124 def resizeEvent(self, evt): |
124 def resizeEvent(self, evt): |
125 """ |
125 """ |
126 Protected method to handle resize events. |
126 Protected method to handle resize events. |
127 |
127 |
128 @param evt reference to the resize event (QResizeEvent) |
128 @param evt reference to the resize event |
|
129 @type QResizeEvent |
129 """ |
130 """ |
130 self.__enableScrollerButtons() |
131 self.__enableScrollerButtons() |
131 super().resizeEvent(evt) |
132 super().resizeEvent(evt) |
132 |
133 |
133 ####################################################################### |
134 ####################################################################### |
158 |
159 |
159 def __slide(self, up): |
160 def __slide(self, up): |
160 """ |
161 """ |
161 Private method to move the sliding widget. |
162 Private method to move the sliding widget. |
162 |
163 |
163 @param up flag indicating to move upwards (boolean) |
164 @param up flag indicating to move upwards |
|
165 @type bool |
164 """ |
166 """ |
165 scrollBar = self.__scroller.verticalScrollBar() |
167 scrollBar = self.__scroller.verticalScrollBar() |
166 stepSize = scrollBar.singleStep() |
168 stepSize = scrollBar.singleStep() |
167 if up: |
169 if up: |
168 stepSize = -stepSize |
170 stepSize = -stepSize |