From 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 00:30:31 +0000 Subject: TQt4 port kdenetwork This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksirc/puke/pframe.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'ksirc/puke/pframe.cpp') diff --git a/ksirc/puke/pframe.cpp b/ksirc/puke/pframe.cpp index ed58d5a7..6acad37e 100644 --- a/ksirc/puke/pframe.cpp +++ b/ksirc/puke/pframe.cpp @@ -4,11 +4,11 @@ PObject * PFrame::createWidget(CreateArgs &ca) { - PFrame *pw = new PFrame(ca.parent); + PFrame *pw = new PFrame(ca.tqparent); TQFrame *tf; - if(ca.parent != 0 && - ca.parent->widget()->isWidgetType() == TRUE) - tf = new TQFrame((TQWidget *) ca.parent->widget()); + if(ca.tqparent != 0 && + ca.tqparent->widget()->isWidgetType() == TRUE) + tf = new TQFrame((TQWidget *) ca.tqparent->widget()); else tf = new TQFrame(); pw->setWidget(tf); @@ -18,8 +18,8 @@ PFrame::createWidget(CreateArgs &ca) } -PFrame::PFrame( PObject *parent) - : PWidget(parent) +PFrame::PFrame( PObject *tqparent) + : PWidget(tqparent) { // kdDebug(5008) << "PFrame PFrame called" << endl; frame = 0; @@ -40,17 +40,17 @@ void PFrame::messageHandler(int fd, PukeMessage *pm) // kdDebug(5008) << "PFrame handler called" << endl; PukeMessage pmRet; switch(pm->iCommand){ - case PUKE_QFRAME_SET_FRAME: + case PUKE_TQFRAME_SET_FRAME: widget()->setFrameStyle(pm->iArg); - pmRet.iCommand = PUKE_QFRAME_SET_FRAME_ACK; + pmRet.iCommand = PUKE_TQFRAME_SET_FRAME_ACK; pmRet.iWinId = pm->iWinId; pmRet.iArg = widget()->frameStyle(); pmRet.cArg = 0; emit outputMessage(fd, &pmRet); break; - case PUKE_QFRAME_SET_LINEWIDTH: + case PUKE_TQFRAME_SET_LINEWIDTH: widget()->setLineWidth(pm->iArg); - pmRet.iCommand = PUKE_QFRAME_SET_LINEWIDTH_ACK; + pmRet.iCommand = PUKE_TQFRAME_SET_LINEWIDTH_ACK; pmRet.iWinId = pm->iWinId; pmRet.iArg = widget()->lineWidth(); pmRet.cArg = 0; -- cgit v1.2.1