summaryrefslogtreecommitdiffstats
path: root/ksirc/puke/pwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksirc/puke/pwidget.cpp')
-rw-r--r--ksirc/puke/pwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ksirc/puke/pwidget.cpp b/ksirc/puke/pwidget.cpp
index 9ce99a2b..b62f64c1 100644
--- a/ksirc/puke/pwidget.cpp
+++ b/ksirc/puke/pwidget.cpp
@@ -55,7 +55,7 @@ PObject *PWidget::createWidget(CreateArgs &ca)
{
PWidget *pw = new PWidget();
TQWidget *tw;
- if(ca.fetchedObj != 0 && ca.fetchedObj->inherits("TQWidget") == TRUE){
+ if(ca.fetchedObj != 0 && ca.fetchedObj->inherits(TQWIDGET_OBJECT_NAME_STRING) == TRUE){
tw = (TQWidget *) ca.fetchedObj;
pw->setDeleteAble(FALSE);
}
@@ -266,7 +266,7 @@ void PWidget::messageHandler(int fd, PukeMessage *pm)
void PWidget::setWidget(TQObject *_w)
{
- if(_w != 0 && _w->inherits("TQWidget") == FALSE)
+ if(_w != 0 && _w->inherits(TQWIDGET_OBJECT_NAME_STRING) == FALSE)
{
errorInvalidSet(_w);
return;