diff options
Diffstat (limited to 'ksirc/puke/controller.cpp')
-rw-r--r-- | ksirc/puke/controller.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ksirc/puke/controller.cpp b/ksirc/puke/controller.cpp index 771a5676..20c020c7 100644 --- a/ksirc/puke/controller.cpp +++ b/ksirc/puke/controller.cpp @@ -50,7 +50,7 @@ using namespace std; // iostream.h include cstring which puts strlen into uint PukeController::uiBaseWinId = 10; // Gives a little seperation from the controller id -PukeController::PukeController(TQString sock, TQObject *tqparent, const char *name) : PObject( tqparent, name ) +PukeController::PukeController(TQString sock, TQObject *parent, const char *name) : PObject( parent, name ) { int len, prev_umask; struct sockaddr_un unix_addr; @@ -562,7 +562,7 @@ void PukeController::hdlrPukeFetchWidget(int fd, PukeMessage *pm) widgetId wIret; /* - * The tqparent widget ID and type are packed into the iArg + * The parent widget ID and type are packed into the iArg * the pattern is 2 shorts. */ @@ -580,14 +580,14 @@ void PukeController::hdlrPukeFetchWidget(int fd, PukeMessage *pm) wIret.iWinId = uiBaseWinId; wIret.fd = fd; - // CreateArgs arg = CreateArgs(this, pm, &wIret, tqparent) + // CreateArgs arg = CreateArgs(this, pm, &wIret, parent) CreateArgs arg(this, pm, &wIret, 0); // Let's go looking for the widget // Match any class with the right name TQObject *obj = 0x0; - if(tqparent() && (strcmp(name, tqparent()->name()) == 0)){ - obj = tqparent(); + if(parent() && (strcmp(name, parent()->name()) == 0)){ + obj = parent(); } else { obj = objFinder::find(name, 0x0); @@ -915,11 +915,11 @@ void PukeController::messageHandler(int fd, PukeMessage *pm) { widgetId PukeController::createWidget(widgetId wI, PukeMessage *pm) { widgetId wIret; - PWidget *tqparent = 0; // Defaults to no tqparent + PWidget *parent = 0; // Defaults to no parent WidgetS *ws = new WidgetS; /* - * The tqparent widget ID and type are packed into the iArg + * The parent widget ID and type are packed into the iArg * the pattern is 2 shorts. */ @@ -928,7 +928,7 @@ widgetId PukeController::createWidget(widgetId wI, PukeMessage *pm) if(found != 2) throw(errorCommandFailed(PUKE_INVALID,7)); - wI.iWinId = iParent; // wI is the identifier for the tqparent widget + wI.iWinId = iParent; // wI is the identifier for the parent widget if(widgetCF[iType] == NULL){ // No such widget, bail out. wIret.fd = 0; @@ -947,11 +947,11 @@ widgetId PukeController::createWidget(widgetId wI, PukeMessage *pm) if(obj->widget()->isWidgetType() == FALSE){ throw(errorCommandFailed(PUKE_INVALID, 0)); } - tqparent = (PWidget *) obj; + parent = (PWidget *) obj; } - // CreateArgs arg = CreateArgs(this, pm, &wIret, tqparent) - CreateArgs arg(this, pm, &wIret, tqparent); + // CreateArgs arg = CreateArgs(this, pm, &wIret, parent) + CreateArgs arg(this, pm, &wIret, parent); ws->pwidget = (widgetCF[iType]->wc)(arg); if (ws->pwidget->hasError()) { |