diff options
Diffstat (limited to 'ksirc/puke/pwidget.cpp')
-rw-r--r-- | ksirc/puke/pwidget.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ksirc/puke/pwidget.cpp b/ksirc/puke/pwidget.cpp index 20507b55..cf3ac667 100644 --- a/ksirc/puke/pwidget.cpp +++ b/ksirc/puke/pwidget.cpp @@ -59,8 +59,8 @@ PObject *PWidget::createWidget(CreateArgs &ca) tw = (TQWidget *) ca.fetchedObj; pw->setDeleteAble(FALSE); } - else if(ca.tqparent != 0 && ca.tqparent->widget()->isWidgetType() == TRUE) - tw = new TQWidget((TQWidget *) ca.tqparent->widget()); + else if(ca.parent != 0 && ca.parent->widget()->isWidgetType() == TRUE) + tw = new TQWidget((TQWidget *) ca.parent->widget()); else tw = new TQWidget(); pw->setWidget(tw); @@ -236,12 +236,12 @@ void PWidget::messageHandler(int fd, PukeMessage *pm) break; case PUKE_WIDGET_RECREATE: { - TQWidget *ntqparent = 0x0; + TQWidget *nparent = 0x0; if(pm->iArg != 0x0){ widgetId wiWidget; wiWidget.fd = fd; wiWidget.iWinId = pm->iArg; - ntqparent = controller()->id2pwidget(&wiWidget)->widget(); + nparent = controller()->id2pwidget(&wiWidget)->widget(); } if(pm->iTextSize != 3*sizeof(int)){ throw(errorCommandFailed(pm->iCommand, pm->iArg)); @@ -250,7 +250,7 @@ void PWidget::messageHandler(int fd, PukeMessage *pm) qWarning("Recreate: %d %d %d", point_show[0], point_show[1], point_show[3]); - widget()->reparent(ntqparent, (WFlags) 0, TQPoint(point_show[0], point_show[1]), point_show[3]); + widget()->reparent(nparent, (WFlags) 0, TQPoint(point_show[0], point_show[1]), point_show[3]); pmRet.iCommand = PUKE_WIDGET_RECREATE_ACK; pmRet.iWinId = pm->iWinId; |