#NEWLINE# def mouseMoveEvent( self , e ) : #NEWLINE# #INDENT# ' mouseMoveEvent(e: QMouseEvent) -> None\n        Handle dragging tabs in and out or around\n\n        ' #NEWLINE# QtGui . QTabBar . mouseMoveEvent ( self , e ) #NEWLINE# if self . startDragPos : #NEWLINE# #INDENT# if ( ( self . startDragPos - e . pos ( ) ) . manhattanLength ( ) >= 4 ) : #NEWLINE# #INDENT# self . startDragPos = None #NEWLINE# self . dragging = True #NEWLINE# #UNINDENT# #UNINDENT# if self . dragging : #NEWLINE# #INDENT# t = self . indexAtPos ( e . pos ( ) ) #NEWLINE# if ( t != ( - 1 ) ) : #NEWLINE# #INDENT# if ( t != self . targetTab ) : #NEWLINE# #INDENT# self . targetTab = t #NEWLINE# self . outerRubberBand . hide ( ) #NEWLINE# self . highlightTab ( t ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . highlightTab ( ( - 1 ) ) #NEWLINE# if ( t != self . targetTab ) : #NEWLINE# #INDENT# self . targetTab = t #NEWLINE# #UNINDENT# if ( self . count ( ) > 0 ) : #NEWLINE# #INDENT# if ( not self . outerRubberBand . isVisible ( ) ) : #NEWLINE# #INDENT# index = self . getGlobalRect ( self . currentIndex ( ) ) #NEWLINE# self . outerRubberBand . setGeometry ( index ) #NEWLINE# self . outerRubberBand . move ( e . globalPos ( ) ) #NEWLINE# self . outerRubberBand . show ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . outerRubberBand . move ( e . globalPos ( ) )