#NEWLINE# def mouseMoveEvent( self , event ) : #NEWLINE# #INDENT# if ( self . isFrameless ( ) and ( not self . isMaximized ( ) ) and ( not self . isFullScreen ( ) ) ) : #NEWLINE# #INDENT# cursorType = self . dragParams [ 'type' ] #NEWLINE# if ( not self . dragParams [ 'draging' ] ) : #NEWLINE# #INDENT# cursorType = self . dragParams [ 'type' ] = self . getCursorType ( event . x ( ) , event . y ( ) ) #NEWLINE# #UNINDENT# if ( cursorType in ( Window . ResizeTop , Window . ResizeBottom ) ) : #NEWLINE# #INDENT# self . webView . setCursor ( Qt . SizeVerCursor ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( cursorType in ( Window . ResizeLeft , Window . ResizeRight ) ) : #NEWLINE# #INDENT# self . webView . setCursor ( Qt . SizeHorCursor ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( cursorType in ( ( Window . ResizeTop | Window . ResizeRight ) , ( Window . ResizeLeft | Window . ResizeBottom ) ) ) : #NEWLINE# #INDENT# self . webView . setCursor ( Qt . SizeBDiagCursor ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( cursorType in ( ( Window . ResizeTop | Window . ResizeLeft ) , ( Window . ResizeRight | Window . ResizeBottom ) ) ) : #NEWLINE# #INDENT# self . webView . setCursor ( Qt . SizeFDiagCursor ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if self . dragParams [ 'draging' ] : #NEWLINE# #INDENT# self . webView . setCursor ( Qt . ArrowCursor ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# dragType = self . dragParams [ 'type' ] #NEWLINE# if ( self . dragParams [ 'draging' ] and ( not self . isMaximized ( ) ) and ( not self . isFullScreen ( ) ) ) : #NEWLINE# #INDENT# x = self . x ( ) #NEWLINE# y = self . y ( ) #NEWLINE# width = self . width ( ) #NEWLINE# height = self . height ( ) #NEWLINE# if ( dragType == Window . Move ) : #NEWLINE# #INDENT# x = ( event . globalX ( ) - self . dragParams [ 'x' ] ) #NEWLINE# y = ( event . globalY ( ) - self . dragParams [ 'y' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if self . isFrameless ( ) : #NEWLINE# #INDENT# if ( ( dragType & Window . ResizeTop ) == Window . ResizeTop ) : #NEWLINE# #INDENT# y = ( event . globalY ( ) - self . dragParams [ 'margin' ] ) #NEWLINE# height = ( ( self . dragParams [ 'height' ] + self . dragParams [ 'globalY' ] ) - event . globalY ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( dragType & Window . ResizeBottom ) == Window . ResizeBottom ) : #NEWLINE# #INDENT# height = ( ( self . dragParams [ 'height' ] - self . dragParams [ 'globalY' ] ) + event . globalY ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# if ( ( dragType & Window . ResizeLeft ) == Window . ResizeLeft ) : #NEWLINE# #INDENT# x = ( event . globalX ( ) - cursorType . dragParams [ 'margin' ] ) #NEWLINE# width = ( ( self . dragParams [ 'width' ] + self . dragParams [ 'globalX' ] ) - event . globalX ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( dragType & Window . ResizeRight ) == Window . ResizeRight ) : #NEWLINE# #INDENT# width = ( ( self . dragParams [ 'width' ] - self . dragParams [ 'globalX' ] ) + event . globalX ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# #UNINDENT# if ( width < self . minimumWidth ( ) ) : #NEWLINE# #INDENT# width = self . minimumWidth ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( width > self . maximumWidth ( ) ) : #NEWLINE# #INDENT# width = self . maximumWidth ( ) #NEWLINE# #UNINDENT# #UNINDENT# if ( height < self . minimumHeight ( ) ) : #NEWLINE# #INDENT# height = self . minimumHeight ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( height > self . maximumHeight ( ) ) : #NEWLINE# #INDENT# height = self . maximumHeight ( ) #NEWLINE# #UNINDENT# #UNINDENT# self . setGeometry ( x , y , width , height )