diff options
Diffstat (limited to 'tqtinterface/qt4/tools/designer/designer/newformimpl.cpp')
-rw-r--r-- | tqtinterface/qt4/tools/designer/designer/newformimpl.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tqtinterface/qt4/tools/designer/designer/newformimpl.cpp b/tqtinterface/qt4/tools/designer/designer/newformimpl.cpp index 1192529..92a9b87 100644 --- a/tqtinterface/qt4/tools/designer/designer/newformimpl.cpp +++ b/tqtinterface/qt4/tools/designer/designer/newformimpl.cpp @@ -141,12 +141,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 ); @@ -310,7 +310,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 ); @@ -386,7 +386,7 @@ void NewForm::accept() { if ( !templateView->currentItem() ) return; - Project *pro = MainWindow::self->tqfindProject( projectCombo->currentText() ); + Project *pro = MainWindow::self->findProject( projectCombo->currentText() ); if ( !pro ) return; MainWindow::self->setCurrentProject( pro ); @@ -396,7 +396,7 @@ void NewForm::accept() void NewForm::projectChanged( const TQString &project ) { - Project *pro = MainWindow::self->tqfindProject( project ); + Project *pro = MainWindow::self->findProject( project ); if ( !pro ) return; TQIconViewItem *i; |