summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/fitsviewer.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:47:17 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:47:17 -0600
commit6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3 (patch)
treecc90a09df2d1fd6d956cc084529a62d354316ad3 /kstars/kstars/fitsviewer.cpp
parent174fd5e23c68598774706ea9b571d3d178e36b81 (diff)
downloadtdeedu-6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3.tar.gz
tdeedu-6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kstars/kstars/fitsviewer.cpp')
-rw-r--r--kstars/kstars/fitsviewer.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kstars/kstars/fitsviewer.cpp b/kstars/kstars/fitsviewer.cpp
index dc8385f9..ea4b1cb0 100644
--- a/kstars/kstars/fitsviewer.cpp
+++ b/kstars/kstars/fitsviewer.cpp
@@ -42,7 +42,7 @@
#include <tqstringlist.h>
#include <tqlistview.h>
#include <tqradiobutton.h>
-#include <tqclipboard.h>
+#include <clipboard.h>
#include <tqimage.h>
#include <math.h>
@@ -311,7 +311,7 @@ float * FITSViewer::loadData(const char *filename, float *buffer)
if (fread(tempData, 1, width * height * bpp, ifp->fp) != (unsigned int) (width * height * bpp))
{
- KMessageBox::error(0, i18n("Unable to read FITS data from file. %1.\n").tqarg(strerror(errno)));
+ KMessageBox::error(0, i18n("Unable to read FITS data from file. %1.\n").arg(strerror(errno)));
return (NULL);
}
@@ -388,7 +388,7 @@ void FITSViewer::calculateStats()
kdDebug() << "Average: " << stats.average << " - stddev: " << stats.stddev << endl;
kdDebug() << "Width: " << stats.width << " - Height " << stats.height << " - bitpix " << stats.bitpix << endl;*/
- statusBar()->changeItem( TQString("%1 x %2").tqarg( (int) stats.width).tqarg( (int) stats.height), 2);
+ statusBar()->changeItem( TQString("%1 x %2").arg( (int) stats.width).arg( (int) stats.height), 2);
}
@@ -555,7 +555,7 @@ void FITSViewer::fileSave()
{
int r=KMessageBox::warningContinueCancel(TQT_TQWIDGET(parent()),
i18n( "A file named \"%1\" already exists. "
- "Overwrite it?" ).tqarg(currentURL.fileName()),
+ "Overwrite it?" ).arg(currentURL.fileName()),
i18n( "Overwrite File?" ),
i18n( "&Overwrite" ) );
@@ -692,7 +692,7 @@ void FITSViewer::fileSave()
}
else
{
- TQString message = i18n( "Invalid URL: %1" ).tqarg( currentURL.url() );
+ TQString message = i18n( "Invalid URL: %1" ).arg( currentURL.url() );
KMessageBox::sorry( 0, message, i18n( "Invalid URL" ) );
}
@@ -880,15 +880,15 @@ void FITSViewer::fitsStatistics()
calculateStats();
- stat.widthOUT->setText(TQString("%1").tqarg(stats.width));
- stat.heightOUT->setText(TQString("%1").tqarg(stats.height));
- stat.bitpixOUT->setText(TQString("%1").tqarg(stats.bitpix));
- stat.maxOUT->setText(TQString("%1").tqarg(stats.max));
- stat.minOUT->setText(TQString("%1").tqarg(stats.min));
- stat.atMaxOUT->setText(TQString("%1").tqarg(stats.maxAt));
- stat.atMinOUT->setText(TQString("%1").tqarg(stats.minAt));
- stat.meanOUT->setText(TQString("%1").tqarg(stats.average));
- stat.stddevOUT->setText(TQString("%1").tqarg(stats.stddev));
+ stat.widthOUT->setText(TQString("%1").arg(stats.width));
+ stat.heightOUT->setText(TQString("%1").arg(stats.height));
+ stat.bitpixOUT->setText(TQString("%1").arg(stats.bitpix));
+ stat.maxOUT->setText(TQString("%1").arg(stats.max));
+ stat.minOUT->setText(TQString("%1").arg(stats.min));
+ stat.atMaxOUT->setText(TQString("%1").arg(stats.maxAt));
+ stat.atMinOUT->setText(TQString("%1").arg(stats.minAt));
+ stat.meanOUT->setText(TQString("%1").arg(stats.average));
+ stat.stddevOUT->setText(TQString("%1").arg(stats.stddev));
stat.exec();