diff options
Diffstat (limited to 'ksirc/puke/controller.cpp')
-rw-r--r-- | ksirc/puke/controller.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ksirc/puke/controller.cpp b/ksirc/puke/controller.cpp index a4e13f3c..771a5676 100644 --- a/ksirc/puke/controller.cpp +++ b/ksirc/puke/controller.cpp @@ -590,7 +590,7 @@ void PukeController::hdlrPukeFetchWidget(int fd, PukeMessage *pm) obj = tqparent(); } else { - obj = objFinder::tqfind(name, 0x0); + obj = objFinder::find(name, 0x0); if(obj == 0){ wIret.fd = 0; wIret.iWinId = 0; @@ -642,10 +642,10 @@ void PukeController::hdlrPukeDeleteWidget(int fd, PukeMessage *pm) kdDebug(5008) << "WidgetRunner:: no such set of widget descriptors?" << endl; throw(errorCommandFailed(PUKE_INVALID, INVALID_DEL_NO_SUCH_CONNECTION)); } - if(qidWS->tqfind(wI.iWinId)){ + if(qidWS->find(wI.iWinId)){ // Remove the list item then delete the widget. This will stop // the destroyed signal from trying to remove it again. - PObject *pw = qidWS->tqfind(wI.iWinId)->pwidget; + PObject *pw = qidWS->find(wI.iWinId)->pwidget; qidWS->remove(wI.iWinId); delete pw; pw = 0; pmRet.iCommand = PUKE_WIDGET_DELETE_ACK; @@ -661,8 +661,8 @@ void PukeController::hdlrPukeDeleteWidget(int fd, PukeMessage *pm) throw(errorCommandFailed(PUKE_INVALID, INVALID_DEL_NO_SUCH_WIDGET)); } - WidgetList[fd]->tqfind(wI.iWinId)->pwidget->manTerm(); - delete WidgetList[fd]->tqfind(wI.iWinId)->pwidget; + WidgetList[fd]->find(wI.iWinId)->pwidget->manTerm(); + delete WidgetList[fd]->find(wI.iWinId)->pwidget; PukeMessage pmRet = *pm; pmRet.iCommand = PUKE_WIDGET_DELETE_ACK; @@ -745,7 +745,7 @@ void PukeController::closefd(int fd) bool PukeController::checkWidgetId(widgetId *pwi) { if(WidgetList[pwi->fd] != NULL) - if(WidgetList[pwi->fd]->tqfind(pwi->iWinId) != NULL) + if(WidgetList[pwi->fd]->find(pwi->iWinId) != NULL) return TRUE; return FALSE; @@ -753,7 +753,7 @@ bool PukeController::checkWidgetId(widgetId *pwi) PObject *PukeController::id2pobject(widgetId *pwi){ if(checkWidgetId(pwi) == TRUE){ - return WidgetList[pwi->fd]->tqfind(pwi->iWinId)->pwidget; + return WidgetList[pwi->fd]->find(pwi->iWinId)->pwidget; } throw(errorNoSuchWidget(*pwi)); return 0; // never reached @@ -899,7 +899,7 @@ void PukeController::messageHandler(int fd, PukeMessage *pm) { } else{ if(checkWidgetId(&wI) == TRUE){ - WidgetList[wI.fd]->tqfind(wI.iWinId)->pwidget->messageHandler(fd, pm); + WidgetList[wI.fd]->find(wI.iWinId)->pwidget->messageHandler(fd, pm); } else{ PukeMessage pmRet; @@ -943,7 +943,7 @@ widgetId PukeController::createWidget(widgetId wI, PukeMessage *pm) wIret.fd = wI.fd; if(checkWidgetId(&wI) == TRUE){ - PObject *obj = WidgetList[wI.fd]->tqfind(wI.iWinId)->pwidget; + PObject *obj = WidgetList[wI.fd]->find(wI.iWinId)->pwidget; if(obj->widget()->isWidgetType() == FALSE){ throw(errorCommandFailed(PUKE_INVALID, 0)); } |