Remove additional unneeded tq method conversions

pull/1/head
Timothy Pearson 13 years ago
parent 9d859a14a4
commit 8b2f9e86eb

@ -140,7 +140,7 @@ void MainWidget::fileSave() {
{ {
int res; int res;
if(TQFile::exists(saveFilename)) if(TQFile::exists(saveFilename))
res=KMessageBox::warningYesNo(this, i18n("Overwrite %1 ?").tqarg(saveFilename)); res=KMessageBox::warningYesNo(this, i18n("Overwrite %1 ?").arg(saveFilename));
else else
{ {
salva=true; salva=true;
@ -165,14 +165,14 @@ void MainWidget::fileSave() {
emit signalChangeStatusbar(i18n(i18n("Error while saving file"))); emit signalChangeStatusbar(i18n(i18n("Error while saving file")));
return; return;
} }
emit signalChangeStatusbar(i18n("Saving %1...").tqarg(m_outputFilename)); emit signalChangeStatusbar(i18n("Saving %1...").arg(m_outputFilename));
char ch; char ch;
while(in.get(ch)) while(in.get(ch))
out.put(ch); out.put(ch);
in.close(); in.close();
out.close(); out.close();
m_changed=false; m_changed=false;
emit signalChangeStatusbar(i18n("File %1 saved.").tqarg(m_outputFilename)); emit signalChangeStatusbar(i18n("File %1 saved.").arg(m_outputFilename));
} }
else else
emit signalChangeStatusbar(i18n("File not saved")); emit signalChangeStatusbar(i18n("File not saved"));
@ -186,14 +186,14 @@ void MainWidget::fileSave() {
emit signalChangeStatusbar(i18n("Error while saving file")); emit signalChangeStatusbar(i18n("Error while saving file"));
return; return;
} }
emit signalChangeStatusbar(i18n("Saving %1...").tqarg(m_outputFilename)); emit signalChangeStatusbar(i18n("Saving %1...").arg(m_outputFilename));
char ch; char ch;
while(in.get(ch)) while(in.get(ch))
out.put(ch); out.put(ch);
in.close(); in.close();
out.close(); out.close();
emit signalChangeStatusbar(i18n("File %1 saved.").tqarg(m_outputFilename)); emit signalChangeStatusbar(i18n("File %1 saved.").arg(m_outputFilename));
m_changed=false; m_changed=false;
} }
} }
@ -226,7 +226,7 @@ void MainWidget::fileSaveAs() {
{ {
int res; int res;
if(TQFile::exists(saveFilename)) if(TQFile::exists(saveFilename))
res=KMessageBox::warningYesNo(this,i18n("Overwrite %1 ?").tqarg(saveFilename)); res=KMessageBox::warningYesNo(this,i18n("Overwrite %1 ?").arg(saveFilename));
else else
{ {
salva=true; salva=true;
@ -251,14 +251,14 @@ void MainWidget::fileSaveAs() {
emit signalChangeStatusbar(i18n("Error while saving file")); emit signalChangeStatusbar(i18n("Error while saving file"));
return; return;
} }
emit signalChangeStatusbar(i18n("Saving %1...").tqarg(m_outputFilename)); emit signalChangeStatusbar(i18n("Saving %1...").arg(m_outputFilename));
char ch; char ch;
while(in.get(ch)) while(in.get(ch))
out.put(ch); out.put(ch);
in.close(); in.close();
out.close(); out.close();
m_changed=false; m_changed=false;
emit signalChangeStatusbar(i18n("File %1 saved.").tqarg(m_outputFilename)); emit signalChangeStatusbar(i18n("File %1 saved.").arg(m_outputFilename));
} }
else else
emit signalChangeStatusbar(i18n("File not saved")); emit signalChangeStatusbar(i18n("File not saved"));
@ -366,7 +366,7 @@ void MainWidget::getImageFromURL(KURL url) {
previewLabel->clear(); previewLabel->clear();
previewLabel->setGeometry(0,0,10,10); previewLabel->setGeometry(0,0,10,10);
imagesTabs->setCurrentPage(0); imagesTabs->setCurrentPage(0);
emit signalChangeStatusbar(i18n("File %1 loaded.").tqarg(filename)); emit signalChangeStatusbar(i18n("File %1 loaded.").arg(filename));
if (!url.isLocalFile()) if (!url.isLocalFile())
KIO::NetAccess::removeTempFile(filename); KIO::NetAccess::removeTempFile(filename);
@ -879,7 +879,7 @@ void MainWidget::tracerExited() {
setCursor(ArrowCursor); setCursor(ArrowCursor);
return; return;
} }
if(tracer.exiStatus()!=0) if(tracer.exitStatus()!=0)
{ {
emit(signalChangeStatusbar(i18n("Finished with errors"))); emit(signalChangeStatusbar(i18n("Finished with errors")));
TQString tmp(i18n("Error during the process:")); TQString tmp(i18n("Error during the process:"));

Loading…
Cancel
Save