diff options
| author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:51:21 -0600 | 
|---|---|---|
| committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:51:21 -0600 | 
| commit | b6ba5d642f3fc7d320e3d6f4650eb259a3a52b04 (patch) | |
| tree | 76f49820693d443128d3720322ff1605e9bcd558 /kdevdesigner/designer/formfile.cpp | |
| parent | 247f828db1b8dcdc9346c1568d81cfa00db99c9e (diff) | |
| download | tdevelop-b6ba5d642f3fc7d320e3d6f4650eb259a3a52b04.tar.gz tdevelop-b6ba5d642f3fc7d320e3d6f4650eb259a3a52b04.zip | |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kdevdesigner/designer/formfile.cpp')
| -rw-r--r-- | kdevdesigner/designer/formfile.cpp | 22 | 
1 files changed, 11 insertions, 11 deletions
| diff --git a/kdevdesigner/designer/formfile.cpp b/kdevdesigner/designer/formfile.cpp index 93486243..325862aa 100644 --- a/kdevdesigner/designer/formfile.cpp +++ b/kdevdesigner/designer/formfile.cpp @@ -77,7 +77,7 @@ FormFile::FormFile( const TQString &fn, bool temp, Project *p, const char *name      if ( !temp )  	checkFileName( FALSE ); -    connect(this, TQT_SIGNAL(somethingChanged(FormFile* )), this, TQT_SLOT(emitNewtqStatus(FormFile* ))); +    connect(this, TQT_SIGNAL(somethingChanged(FormFile* )), this, TQT_SLOT(emitNewStatus(FormFile* )));  }  FormFile::~FormFile() @@ -192,7 +192,7 @@ bool FormFile::save( bool withMsgBox, bool ignoreModified )  		    f2.writeBlock( data );  		} else {  		    TQMessageBox::warning( MainWindow::self, i18n( "Save" ), -                                  i18n( "The file %1 could not be saved" ).tqarg( codeFile() ) ); +                                  i18n( "The file %1 could not be saved" ).arg( codeFile() ) );  		}  	    }  	} @@ -215,7 +215,7 @@ bool FormFile::save( bool withMsgBox, bool ignoreModified )  		    f2.writeBlock( data );  		} else if ( tqApp->type() != TQApplication::Tty ) {              TQMessageBox::warning( MainWindow::self, i18n( "Save" ), -                                  i18n( "The file %1 could not be saved" ).tqarg( codeFile() ) ); +                                  i18n( "The file %1 could not be saved" ).arg( codeFile() ) );  		}  	    }  	} @@ -227,7 +227,7 @@ bool FormFile::save( bool withMsgBox, bool ignoreModified )  	bool formCodeOnly = isModified( WFormCode ) && !isModified( WFormWindow );  	if ( !resource.save( pro->makeAbsolute( filename ), formCodeOnly ) ) {  	    if ( MainWindow::self ) -		MainWindow::self->statusMessage( i18n( "Failed to save file '%1'.").tqarg( formCodeOnly ? codeFile(): filename ) ); +		MainWindow::self->statusMessage( i18n( "Failed to save file '%1'.").arg( formCodeOnly ? codeFile(): filename ) );  	    if ( formCodeOnly )  		return FALSE;  	    return saveAs(); @@ -263,7 +263,7 @@ bool FormFile::saveAs( bool ignoreModified )  	fn = KFileDialog::getSaveFileName( f,  					   i18n( "*.ui|TQt User-Interface Files" ) + "\n" +  					   i18n( "*|All Files" ), MainWindow::self, /*0,*/ -					   i18n( "Save Form '%1' As").tqarg( formName() )/*, +					   i18n( "Save Form '%1' As").arg( formName() )/*,  					   MainWindow::self ? &MainWindow::self->lastSaveFilter : 0*/ );  	if ( fn.isEmpty() )  	    return FALSE; @@ -294,7 +294,7 @@ bool FormFile::saveAs( bool ignoreModified )      pro->setModified( TRUE );      timeStamp.setFileName( pro->makeAbsolute( codeFile() ) );      if ( ed && TQT_TQOBJECT(formWindow()) ) -	ed->setCaption( i18n( "Edit %1" ).tqarg( formWindow()->name() ) ); +	ed->setCaption( i18n( "Edit %1" ).arg( formWindow()->name() ) );      setModified( TRUE );      if ( pro->isDummy() )  	fw->mainWindow()->addRecentlyOpenedFile( fn ); @@ -326,7 +326,7 @@ bool FormFile::closeEvent()  	editor()->save();      switch ( TQMessageBox::warning( MainWindow::self, i18n( "Save Form" ), -				   i18n( "Save changes to form '%1'?" ).tqarg( filename ), +				   i18n( "Save changes to form '%1'?" ).arg( filename ),  				   i18n( "&Yes" ), i18n( "&No" ), i18n( "&Cancel" ), 0, 2 ) ) {      case 0: // save  	if ( !save() ) @@ -653,7 +653,7 @@ void FormFile::checkTimeStamp()      if ( codeEdited ) {  	if ( TQMessageBox::information( MainWindow::self, i18n( "TQt Designer" ),  				       i18n( "File '%1' has been changed outside TQt Designer.\n" -					   "Do you want to reload it?" ).tqarg( timeStamp.fileName() ), +					   "Do you want to reload it?" ).arg( timeStamp.fileName() ),  				       i18n( "&Yes" ), i18n( "&No" ) ) == 0 ) {  	    TQFile f( timeStamp.fileName() );  	    if ( f.open( IO_ReadOnly ) ) { @@ -854,7 +854,7 @@ bool FormFile::checkFileName( bool allowBreak )      if ( ff )  	TQMessageBox::warning( MainWindow::self, i18n( "Invalid Filename" ),  			      i18n( "The project already contains a form with a\n" -				  "filename of '%1'. Please choose a new filename." ).tqarg( filename ) ); +				  "filename of '%1'. Please choose a new filename." ).arg( filename ) );      while ( ff ) {  	TQString fn;  	while ( fn.isEmpty() ) { @@ -899,7 +899,7 @@ void FormFile::notifyFormWindowChange()  	pro->formOpened( fw );  } -void FormFile::emitNewtqStatus(FormFile *file) +void FormFile::emitNewStatus(FormFile *file)  { -    fw->mainWindow()->part()->emitNewtqStatus(fileName(), isModified()); +    fw->mainWindow()->part()->emitNewStatus(fileName(), isModified());  } | 
