summaryrefslogtreecommitdiffstats
path: root/ksirc/puke/pframe.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /ksirc/puke/pframe.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
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
Diffstat (limited to 'ksirc/puke/pframe.cpp')
-rw-r--r--ksirc/puke/pframe.cpp20
1 files changed, 10 insertions, 10 deletions
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;