summaryrefslogtreecommitdiffstats
path: root/src/modules/dcc/canvas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/dcc/canvas.cpp')
-rw-r--r--src/modules/dcc/canvas.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/modules/dcc/canvas.cpp b/src/modules/dcc/canvas.cpp
index e80272ae..6b5f6872 100644
--- a/src/modules/dcc/canvas.cpp
+++ b/src/modules/dcc/canvas.cpp
@@ -20,7 +20,7 @@
// Inc. ,51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
-#define QT_MODULE_CANVAS
+#define TQT_MODULE_CANVAS
#include "canvas.h"
@@ -50,7 +50,7 @@
#include "kvi_themedlabel.h"
#include "kvi_ircconnection.h"
-#include <qsplitter.h>
+#include <tqsplitter.h>
extern KviDccBroker * g_pDccBroker;
@@ -58,7 +58,7 @@ extern KviDccBroker * g_pDccBroker;
KviDccCanvas::KviDccCanvas(KviFrame *pFrm,KviDccDescriptor * dcc,const char * name)
: KviDccWindow(KVI_WINDOW_TYPE_DCCCANVAS,pFrm,name,dcc)
{
- m_pSplitter = new QSplitter(QSplitter::Vertical,this,"splitter");
+ m_pSplitter = new TQSplitter(Qt::Vertical,this,"splitter");
m_pCanvas = new KviCanvasWidget(m_pSplitter);
@@ -68,8 +68,8 @@ KviDccCanvas::KviDccCanvas(KviFrame *pFrm,KviDccDescriptor * dcc,const char * na
// setFocusHandler(m_pInput,this);
m_pMarshal = new KviDccMarshal(this);
- connect(m_pMarshal,SIGNAL(error(int)),this,SLOT(handleMarshalError(int)));
- connect(m_pMarshal,SIGNAL(connected()),this,SLOT(connected()));
+ connect(m_pMarshal,TQT_SIGNAL(error(int)),this,TQT_SLOT(handleMarshalError(int)));
+ connect(m_pMarshal,TQT_SIGNAL(connected()),this,TQT_SLOT(connected()));
if(!(m_pDescriptor->bActive))
@@ -85,8 +85,8 @@ KviDccCanvas::KviDccCanvas(KviFrame *pFrm,KviDccDescriptor * dcc,const char * na
if(dcc->bSendRequest)
{
- QString ip = !dcc->szFakeIp.isEmpty() ? dcc->szFakeIp : dcc->szListenIp;
- QString port = !dcc->szFakePort.isEmpty() ? dcc->szFakePort.utf8().data() : m_pMarshal->localPort();
+ TQString ip = !dcc->szFakeIp.isEmpty() ? dcc->szFakeIp : dcc->szListenIp;
+ TQString port = !dcc->szFakePort.isEmpty() ? dcc->szFakePort.utf8().data() : m_pMarshal->localPort();
//#warning "OPTION FOR SENDING 127.0.0.1 and so on (not an unsigned number)"
struct in_addr a;
if(kvi_stringIpToBinaryIp(ip.utf8().data(),&a))ip.setNum(htonl(a.s_addr));
@@ -119,12 +119,12 @@ KviDccCanvas::~KviDccCanvas()
// delete m_pSlaveThread;
// m_pSlaveThread = 0;
// }
- KviThreadManager::killPendingEvents(this);
+ KviThreadManager::killPendingEvents(TQT_TQOBJECT(this));
// delete m_pDescriptor;
// delete m_pMarshal;
}
-const QString & KviDccCanvas::target()
+const TQString & KviDccCanvas::target()
{
// This may change on the fly...
m_szTarget.sprintf("%s@%s:%s",
@@ -140,12 +140,12 @@ void KviDccCanvas::fillCaptionBuffers()
m_szPlainTextCaption = tmp;
m_szHtmlActiveCaption.sprintf("<nobr><font color=\"%s\"><b>%s</b></font></nobr>",
- KVI_OPTION_COLOR(KviOption_colorCaptionTextActive).name().ascii(),tmp.ptr());
+ TQString(KVI_OPTION_COLOR(KviOption_colorCaptionTextActive).name()).ascii(),tmp.ptr());
m_szHtmlInactiveCaption.sprintf("<nobr><font color=\"%s\"><b>%s</b></font></nobr>",
- KVI_OPTION_COLOR(KviOption_colorCaptionTextInactive).name().ascii(),tmp.ptr());
+ TQString(KVI_OPTION_COLOR(KviOption_colorCaptionTextInactive).name()).ascii(),tmp.ptr());
}
-QPixmap * KviDccCanvas::myIconPtr()
+TQPixmap * KviDccCanvas::myIconPtr()
{
return g_pIconManager->getSmallIcon(KVI_SMALLICON_CANVAS);
}
@@ -172,7 +172,7 @@ void KviDccCanvas::ownAction(const char * text)
output(KVI_OUT_ACTION,"%Q %s",&(m_pDescriptor->szLocalNick),text);
}
-bool KviDccCanvas::event(QEvent *e)
+bool KviDccCanvas::event(TQEvent *e)
{
// if(e->type() == KVI_THREAD_EVENT)
// {
@@ -255,25 +255,25 @@ bool KviDccCanvas::event(QEvent *e)
return KviWindow::event(e);
}
-void KviDccCanvas::resizeEvent(QResizeEvent *e)
+void KviDccCanvas::resizeEvent(TQResizeEvent *e)
{
int hght = m_pInput->heightHint();
-// int hght2 = m_pTopSplitter->sizeHint().height();
+// int hght2 = m_pTopSplitter->tqsizeHint().height();
// m_pTopSplitter->setGeometry(0,0,width(),hght2);
m_pSplitter->setGeometry(0,0,width(),height() - hght);
m_pInput->setGeometry(0,height() - hght,width(),hght);
}
-QSize KviDccCanvas::sizeHint() const
+TQSize KviDccCanvas::tqsizeHint() const
{
- QSize ret(m_pIrcView->sizeHint().width(),
- m_pIrcView->sizeHint().height() + m_pInput->heightHint());
+ TQSize ret(m_pIrcView->tqsizeHint().width(),
+ m_pIrcView->tqsizeHint().height() + m_pInput->heightHint());
return ret;
}
void KviDccCanvas::handleMarshalError(int err)
{
- QString sss = KviError::getDescription(err);
+ TQString sss = KviError::getDescription(err);
output(KVI_OUT_DCCERROR,__tr2qs_ctx("DCC Failed: %Q","dcc"),&sss);
}