summaryrefslogtreecommitdiffstats
path: root/src/mainwidget.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:57:33 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:57:33 -0600
commitcfd41d87ca7abc5dee7d2e3975c6bfdb3486dd42 (patch)
tree0d282eb4a1e6cd714052b18c3fea28eeb2fed23e /src/mainwidget.cpp
parentfc33ee27759530d7e9646400d34ab135e574f52b (diff)
downloadpotracegui-cfd41d87ca7abc5dee7d2e3975c6bfdb3486dd42.tar.gz
potracegui-cfd41d87ca7abc5dee7d2e3975c6bfdb3486dd42.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit fc33ee27759530d7e9646400d34ab135e574f52b.
Diffstat (limited to 'src/mainwidget.cpp')
-rw-r--r--src/mainwidget.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mainwidget.cpp b/src/mainwidget.cpp
index 202f447..03cca92 100644
--- a/src/mainwidget.cpp
+++ b/src/mainwidget.cpp
@@ -140,7 +140,7 @@ void MainWidget::fileSave() {
{
int res;
if(TQFile::exists(saveFilename))
- res=KMessageBox::warningYesNo(this, i18n("Overwrite %1 ?").arg(saveFilename));
+ res=KMessageBox::warningYesNo(this, i18n("Overwrite %1 ?").tqarg(saveFilename));
else
{
salva=true;
@@ -165,14 +165,14 @@ void MainWidget::fileSave() {
emit signalChangeStatusbar(i18n(i18n("Error while saving file")));
return;
}
- emit signalChangeStatusbar(i18n("Saving %1...").arg(m_outputFilename));
+ emit signalChangeStatusbar(i18n("Saving %1...").tqarg(m_outputFilename));
char ch;
while(in.get(ch))
out.put(ch);
in.close();
out.close();
m_changed=false;
- emit signalChangeStatusbar(i18n("File %1 saved.").arg(m_outputFilename));
+ emit signalChangeStatusbar(i18n("File %1 saved.").tqarg(m_outputFilename));
}
else
emit signalChangeStatusbar(i18n("File not saved"));
@@ -186,14 +186,14 @@ void MainWidget::fileSave() {
emit signalChangeStatusbar(i18n("Error while saving file"));
return;
}
- emit signalChangeStatusbar(i18n("Saving %1...").arg(m_outputFilename));
+ emit signalChangeStatusbar(i18n("Saving %1...").tqarg(m_outputFilename));
char ch;
while(in.get(ch))
out.put(ch);
in.close();
out.close();
- emit signalChangeStatusbar(i18n("File %1 saved.").arg(m_outputFilename));
+ emit signalChangeStatusbar(i18n("File %1 saved.").tqarg(m_outputFilename));
m_changed=false;
}
}
@@ -226,7 +226,7 @@ void MainWidget::fileSaveAs() {
{
int res;
if(TQFile::exists(saveFilename))
- res=KMessageBox::warningYesNo(this,i18n("Overwrite %1 ?").arg(saveFilename));
+ res=KMessageBox::warningYesNo(this,i18n("Overwrite %1 ?").tqarg(saveFilename));
else
{
salva=true;
@@ -251,14 +251,14 @@ void MainWidget::fileSaveAs() {
emit signalChangeStatusbar(i18n("Error while saving file"));
return;
}
- emit signalChangeStatusbar(i18n("Saving %1...").arg(m_outputFilename));
+ emit signalChangeStatusbar(i18n("Saving %1...").tqarg(m_outputFilename));
char ch;
while(in.get(ch))
out.put(ch);
in.close();
out.close();
m_changed=false;
- emit signalChangeStatusbar(i18n("File %1 saved.").arg(m_outputFilename));
+ emit signalChangeStatusbar(i18n("File %1 saved.").tqarg(m_outputFilename));
}
else
emit signalChangeStatusbar(i18n("File not saved"));
@@ -286,7 +286,7 @@ void MainWidget::fileClose() {
void MainWidget::cut() {
if(originalLabel->pixmap()!=0)
{
- TQApplication::clipboard()->setPixmap(TQPixmap(*(originalLabel->pixmap())));
+ TQApplication::tqclipboard()->setPixmap(TQPixmap(*(originalLabel->pixmap())));
fileClose();
}
}
@@ -294,12 +294,12 @@ void MainWidget::cut() {
void MainWidget::copy() {
if(originalLabel->pixmap()!=0)
{
- TQApplication::clipboard()->setPixmap(TQPixmap(*(originalLabel->pixmap())));
+ TQApplication::tqclipboard()->setPixmap(TQPixmap(*(originalLabel->pixmap())));
}
}
void MainWidget::paste() {
- TQPixmap clip=TQApplication::clipboard()->pixmap();
+ TQPixmap clip=TQApplication::tqclipboard()->pixmap();
if(!clip.isNull())
{
if(!createTmpFilename())
@@ -309,7 +309,7 @@ void MainWidget::paste() {
}
m_outputFilename="";
- TQPixmap pix(TQApplication::clipboard()->pixmap());
+ TQPixmap pix(TQApplication::tqclipboard()->pixmap());
originalLabel->clear();
originalLabel->setGeometry(0,0,pix.width(),pix.height());
originalLabel->setPixmap(pix);
@@ -366,7 +366,7 @@ void MainWidget::getImageFromURL(KURL url) {
previewLabel->clear();
previewLabel->setGeometry(0,0,10,10);
imagesTabs->setCurrentPage(0);
- emit signalChangeStatusbar(i18n("File %1 loaded.").arg(filename));
+ emit signalChangeStatusbar(i18n("File %1 loaded.").tqarg(filename));
if (!url.isLocalFile())
KIO::NetAccess::removeTempFile(filename);
@@ -879,7 +879,7 @@ void MainWidget::tracerExited() {
setCursor(ArrowCursor);
return;
}
- if(tracer.exiStatus()!=0)
+ if(tracer.exitqStatus()!=0)
{
emit(signalChangeStatusbar(i18n("Finished with errors")));
TQString tmp(i18n("Error during the process:"));