summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/ccdpreviewwg.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/ccdpreviewwg.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/ccdpreviewwg.cpp')
-rw-r--r--kstars/kstars/ccdpreviewwg.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kstars/kstars/ccdpreviewwg.cpp b/kstars/kstars/ccdpreviewwg.cpp
index 26370cad..670b399c 100644
--- a/kstars/kstars/ccdpreviewwg.cpp
+++ b/kstars/kstars/ccdpreviewwg.cpp
@@ -33,7 +33,7 @@
#include <tqpainter.h>
#include <tqstringlist.h>
#include <tqdir.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqlabel.h>
@@ -106,7 +106,7 @@ void CCDPreviewWG::setColorFrame(bool color)
TQString errMsg;
struct sockaddr_in pin;
struct hostent *serverHostName = gethostbyname(host.ascii());
- errMsg = TQString("Connection to INDI host at %1 on port %2 failed.").tqarg(host).tqarg(port);
+ errMsg = TQString("Connection to INDI host at %1 on port %2 failed.").arg(host).arg(port);
memset(&pin, 0, sizeof(pin));
pin.sin_family = AF_INET;
@@ -168,8 +168,8 @@ void CCDPreviewWG::setCtrl(int wd, int ht,int po, int bpp,unsigned long mgd)
for (i=0;i<streamFrame->totalBaseCount;i++) {
streamFrame->streamBuffer[i]=0;
}
- resize(wd + tqlayout()->margin() * 2 , ht + playB->height() + brightnessLabel->height()
- + contrastLabel->height() + gammaLabel->height() + focalEdit->height() + FWHMLabel->height() + tqlayout()->margin() * 2 + tqlayout()->spacing()*6);
+ resize(wd + layout()->margin() * 2 , ht + playB->height() + brightnessLabel->height()
+ + contrastLabel->height() + gammaLabel->height() + focalEdit->height() + FWHMLabel->height() + layout()->margin() * 2 + layout()->spacing()*6);
streamFrame->resize(wd, ht);
}
@@ -197,14 +197,14 @@ void CCDPreviewWG::updateFWHM()
fwhm_arcsec = (206.26 / focal_length) * fwhm * mu;
- FWHMLabel->setText(TQString("%1").tqarg(fwhm_arcsec, 0, 'g', 3));
+ FWHMLabel->setText(TQString("%1").arg(fwhm_arcsec, 0, 'g', 3));
}
void CCDPreviewWG::resizeEvent(TQResizeEvent *ev)
{
- streamFrame->resize(ev->size().width() - tqlayout()->margin() * 2, ev->size().height() - playB->height() - tqlayout()->margin() * 2 - tqlayout()->spacing());
+ streamFrame->resize(ev->size().width() - layout()->margin() * 2, ev->size().height() - playB->height() - layout()->margin() * 2 - layout()->spacing());
}
void CCDPreviewWG::playPressed()
@@ -263,14 +263,14 @@ void CCDPreviewWG::captureImage()
if ( ! KIO::NetAccess::upload( tmpfile.name(), currentFileURL, (TQWidget*) 0 ) )
{
- TQString message = i18n( "Could not upload image to remote location: %1" ).tqarg( currentFileURL.prettyURL() );
+ TQString message = i18n( "Could not upload image to remote location: %1" ).arg( currentFileURL.prettyURL() );
KMessageBox::sorry( 0, message, i18n( "Could not upload file" ) );
}
}
}
else
{
- TQString message = i18n( "Invalid URL: %1" ).tqarg( currentFileURL.url() );
+ TQString message = i18n( "Invalid URL: %1" ).arg( currentFileURL.url() );
KMessageBox::sorry( 0, message, i18n( "Invalid URL" ) );
}