#NEWLINE# def mouseMoveEvent( self , event ) : #NEWLINE# #INDENT# ' Handle the mouse move event for the control.\n\n        If the user has previously pressed the control, this will move\n        the slider(s) to the appropriate position and request an update.\n\n        ' #NEWLINE# if ( self . _pressed_control != QStyle . SC_SliderHandle ) : #NEWLINE# #INDENT# event . ignore ( ) #NEWLINE# return #NEWLINE# #UNINDENT# event . accept ( ) #NEWLINE# opt = QStyleOptionSlider ( ) #NEWLINE# self . initStyleOption ( opt ) #NEWLINE# point = self . _pick ( event . pos ( ) ) #NEWLINE# click_offset = self . _click_offset #NEWLINE# thumb = self . _active_thumb #NEWLINE# if ( thumb == self . BothThumbs ) : #NEWLINE# #INDENT# new_pos = self . _pixelPosToRangeValue ( point , opt ) #NEWLINE# offset = ( new_pos - click_offset ) #NEWLINE# self . _high += offset #NEWLINE# self . _low += offset #NEWLINE# if ( self . _low < self . minimum ( ) ) : #NEWLINE# #INDENT# diff = ( self . minimum ( ) - self . _low ) #NEWLINE# self . _low += diff #NEWLINE# self . _high += diff #NEWLINE# #UNINDENT# if ( self . _high > self . maximum ( ) ) : #NEWLINE# #INDENT# diff = ( self . maximum ( ) - self . _high ) #NEWLINE# self . _low += diff #NEWLINE# self . _high += diff #NEWLINE# #UNINDENT# self . _click_offset = new_pos #NEWLINE# self . lowValueChanged . emit ( new_pos ) #NEWLINE# self . highValueChanged . emit ( new_pos ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( thumb == self . LowThumb ) : #NEWLINE# #INDENT# new_pos = self . _pixelPosToRangeValue ( ( point - click_offset ) , opt ) #NEWLINE# if ( new_pos >= self . _high ) : #NEWLINE# #INDENT# new_pos = ( self . _high - 1 ) #NEWLINE# #UNINDENT# self . _low = new_pos #NEWLINE# self . lowValueChanged . emit ( new_pos ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( thumb == self . HighThumb ) : #NEWLINE# #INDENT# new_pos = self . _pixelPosToRangeValue ( ( point - click_offset ) , opt ) #NEWLINE# if ( new_pos <= self . _low ) : #NEWLINE# #INDENT# new_pos = ( self . _low + 1 ) #NEWLINE# #UNINDENT# self . _high = new_pos #NEWLINE# self . highValueChanged . emit ( new_pos ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( 'Invalid thumb enum value.' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . update ( )