#NEWLINE# def _qt4_scale( self , image ) : #NEWLINE# #INDENT# ' Scales the given image if necessary. ' #NEWLINE# if ( ( image . width ( ) != self . _width ) or ( image . height ( ) != self . _height ) ) : #NEWLINE# #INDENT# image = image . scaled ( self . _width , self . _height ) #NEWLINE# #UNINDENT# return image