diff options
Diffstat (limited to 'kdevdesigner/designer/newformimpl.cpp')
| -rw-r--r-- | kdevdesigner/designer/newformimpl.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/kdevdesigner/designer/newformimpl.cpp b/kdevdesigner/designer/newformimpl.cpp index 6fae9015..0c90c056 100644 --- a/kdevdesigner/designer/newformimpl.cpp +++ b/kdevdesigner/designer/newformimpl.cpp @@ -138,12 +138,12 @@ static void unifyFormName( FormWindow *fw, TQWorkspace *qworkspace )  	lst << w->name();      } -    if ( lst.tqfindIndex( fw->name() ) == -1 ) +    if ( lst.findIndex( fw->name() ) == -1 )  	return;      TQString origName = fw->name();      TQString n = origName;      int i = 1; -    while ( lst.tqfindIndex( n ) != -1 ) { +    while ( lst.findIndex( n ) != -1 ) {  	n = origName + TQString::number( i++ );      }      fw->setName( n ); @@ -306,7 +306,7 @@ void NewForm::insertTemplates( TQIconView *tView,  		    if ( !fi->isFile() || fi->extension() != "ui" )  			continue;  		    TQString name = fi->baseName(); -		    name = name.tqreplace( '_', ' ' ); +		    name = name.replace( '_', ' ' );  		    CustomFormItem *ci = new CustomFormItem( tView, name );  		    allItems.append( ci );  		    ci->setDragEnabled( FALSE );  | 
