#NEWLINE# def init( self , parent ) : #NEWLINE# #INDENT# ' Finishes initializing the editor by creating the underlying toolkit\n            widget.\n        ' #NEWLINE# if ( QtCore . __version_info__ < ( 4 , 7 , 0 ) ) : #NEWLINE# #INDENT# control = self . control = SearchWidget ( self . factory . text ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# control = self . control = QtGui . QLineEdit ( ) #NEWLINE# control . setPlaceholderText ( self . factory . text ) #NEWLINE# #UNINDENT# if self . factory . auto_set : #NEWLINE# #INDENT# control . textEdited . connect ( self . update_object ) #NEWLINE# #UNINDENT# if self . factory . enter_set : #NEWLINE# #INDENT# control . editingFinished . connect ( parent . update_object )