summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/streamwg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/streamwg.cpp')
-rw-r--r--kstars/kstars/streamwg.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kstars/kstars/streamwg.cpp b/kstars/kstars/streamwg.cpp
index 80998c07..36e991c5 100644
--- a/kstars/kstars/streamwg.cpp
+++ b/kstars/kstars/streamwg.cpp
@@ -40,7 +40,7 @@
FILE *wfp;
- StreamWG::StreamWG(INDIStdDevice *inStdDev, TQWidget * parent, const char * name) : streamForm(parent, name)
+ StreamWG::StreamWG(INDIStdDevice *inStdDev, TQWidget * tqparent, const char * name) : streamForm(tqparent, name)
{
stdDev = inStdDev;
@@ -90,7 +90,7 @@ void StreamWG::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.").arg(host).arg(port);
+ errMsg = TQString("Connection to INDI host at %1 on port %2 failed.").tqarg(host).tqarg(port);
memset(&pin, 0, sizeof(pin));
pin.sin_family = AF_INET;
@@ -138,14 +138,14 @@ void StreamWG::setSize(int wd, int ht)
streamFrame->totalBaseCount = wd * ht;
- resize(wd + layout()->margin() * 2 , ht + playB->height() + layout()->margin() * 2 + layout()->spacing());
+ resize(wd + tqlayout()->margin() * 2 , ht + playB->height() + tqlayout()->margin() * 2 + tqlayout()->spacing());
streamFrame->resize(wd, ht);
}
void StreamWG::resizeEvent(TQResizeEvent *ev)
{
- streamFrame->resize(ev->size().width() - layout()->margin() * 2, ev->size().height() - playB->height() - layout()->margin() * 2 - layout()->spacing());
+ streamFrame->resize(ev->size().width() - tqlayout()->margin() * 2, ev->size().height() - playB->height() - tqlayout()->margin() * 2 - tqlayout()->spacing());
}
/*
@@ -254,26 +254,26 @@ void StreamWG::captureImage()
if ( ! KIO::NetAccess::upload( tmpfile.name(), currentFileURL, (TQWidget*) 0 ) )
{
- TQString message = i18n( "Could not upload image to remote location: %1" ).arg( currentFileURL.prettyURL() );
+ TQString message = i18n( "Could not upload image to remote location: %1" ).tqarg( currentFileURL.prettyURL() );
KMessageBox::sorry( 0, message, i18n( "Could not upload file" ) );
}
}
}
else
{
- TQString message = i18n( "Invalid URL: %1" ).arg( currentFileURL.url() );
+ TQString message = i18n( "Invalid URL: %1" ).tqarg( currentFileURL.url() );
KMessageBox::sorry( 0, message, i18n( "Invalid URL" ) );
}
}
-VideoWG::VideoWG(TQWidget * parent, const char * name) : TQFrame(parent, name, Qt::WNoAutoErase)
+VideoWG::VideoWG(TQWidget * tqparent, const char * name) : TQFrame(tqparent, name, TQt::WNoAutoErase)
{
streamImage = NULL;
- grayTable=new QRgb[256];
+ grayTable=new TQRgb[256];
for (int i=0;i<256;i++)
- grayTable[i]=qRgb(i,i,i);
+ grayTable[i]=tqRgb(i,i,i);
}
VideoWG::~VideoWG()