diff options
Diffstat (limited to 'src/modules/options/mkcreateinstanceproc.sh')
-rwxr-xr-x | src/modules/options/mkcreateinstanceproc.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/options/mkcreateinstanceproc.sh b/src/modules/options/mkcreateinstanceproc.sh index fd1d7ffe..1a25a14d 100755 --- a/src/modules/options/mkcreateinstanceproc.sh +++ b/src/modules/options/mkcreateinstanceproc.sh @@ -160,9 +160,9 @@ EOF for aclass in $CLASS_LIST; do echo -n "KviOptionsWidget * class$aclass" >> $TARGET - echo "_createInstanceProc(QWidget * tqparent)" >> $TARGET + echo "_createInstanceProc(QWidget * parent)" >> $TARGET echo "{" >> $TARGET - echo " return new $aclass(tqparent);" >> $TARGET + echo " return new $aclass(parent);" >> $TARGET echo "}" >> $TARGET echo "" >> $TARGET done @@ -308,10 +308,10 @@ void KviOptionsInstanceManager::deleteInstanceTree(KviPointerList<KviOptionsWidg { if(e->pWidget) { - if(e->pWidget->tqparent()->inherits("KviOptionsWidgetContainer")) + if(e->pWidget->parent()->inherits("KviOptionsWidgetContainer")) { disconnect(e->pWidget,SIGNAL(destroyed()),this,SLOT(widgetDestroyed())); - delete e->pWidget->tqparent(); + delete e->pWidget->parent(); e->pWidget = 0; } else { debug("Ops...i have deleted the options dialog ?"); @@ -352,9 +352,9 @@ KviOptionsWidget * KviOptionsInstanceManager::getInstance(KviOptionsWidgetInstan g_iOptionWidgetInstances++; connect(e->pWidget,SIGNAL(destroyed()),this,SLOT(widgetDestroyed())); } - if(e->pWidget->tqparent() != par) + if(e->pWidget->parent() != par) { - QWidget * oldPar = (QWidget *)e->pWidget->tqparent(); + QWidget * oldPar = (QWidget *)e->pWidget->parent(); e->pWidget->reparent(par,QPoint(0,0)); delete oldPar; } |