summaryrefslogtreecommitdiffstats
path: root/src/modules/options/mkcreateinstanceproc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/options/mkcreateinstanceproc.sh')
-rwxr-xr-xsrc/modules/options/mkcreateinstanceproc.sh20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/modules/options/mkcreateinstanceproc.sh b/src/modules/options/mkcreateinstanceproc.sh
index 97be80b5..fd1d7ffe 100755
--- a/src/modules/options/mkcreateinstanceproc.sh
+++ b/src/modules/options/mkcreateinstanceproc.sh
@@ -90,7 +90,7 @@ protected:
KviOptionsWidgetInstanceEntry * findInstanceEntry(const char * clName,KviPointerList<KviOptionsWidgetInstanceEntry> * l);
KviOptionsWidgetInstanceEntry * findInstanceEntry(const QObject * ptr,KviPointerList<KviOptionsWidgetInstanceEntry> * l);
void deleteInstanceTree(KviPointerList<KviOptionsWidgetInstanceEntry> * l);
-protected slots:
+protected Q_SLOTS:
void widgetDestroyed();
};
@@ -160,9 +160,9 @@ EOF
for aclass in $CLASS_LIST; do
echo -n "KviOptionsWidget * class$aclass" >> $TARGET
- echo "_createInstanceProc(QWidget * parent)" >> $TARGET
+ echo "_createInstanceProc(QWidget * tqparent)" >> $TARGET
echo "{" >> $TARGET
- echo " return new $aclass(parent);" >> $TARGET
+ echo " return new $aclass(tqparent);" >> $TARGET
echo "}" >> $TARGET
echo "" >> $TARGET
done
@@ -271,7 +271,7 @@ printclass()
fi
}
-addchildren()
+addtqchildren()
{
if [ -f "$CLASSDIR/$2" ]; then
LEVEL=`cat $CLASSDIR/$2`
@@ -282,7 +282,7 @@ addchildren()
echo "$3 e$1->pChildList = new KviPointerList<KviOptionsWidgetInstanceEntry>;" >> $TARGET
echo "$3 e$1->pChildList->setAutoDelete(true);" >> $TARGET
NEXTLEVEL=`expr $1 + 1`
- addchildren $NEXTLEVEL $achild "$3 "
+ addtqchildren $NEXTLEVEL $achild "$3 "
else
echo "$3 e$1->pChildList = 0;" >> $TARGET
fi
@@ -290,7 +290,7 @@ addchildren()
fi
}
-addchildren 0 NOPARENT ""
+addtqchildren 0 NOPARENT ""
rm -fr $CLASSDIR
@@ -308,10 +308,10 @@ void KviOptionsInstanceManager::deleteInstanceTree(KviPointerList<KviOptionsWidg
{
if(e->pWidget)
{
- if(e->pWidget->parent()->inherits("KviOptionsWidgetContainer"))
+ if(e->pWidget->tqparent()->inherits("KviOptionsWidgetContainer"))
{
disconnect(e->pWidget,SIGNAL(destroyed()),this,SLOT(widgetDestroyed()));
- delete e->pWidget->parent();
+ delete e->pWidget->tqparent();
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->parent() != par)
+ if(e->pWidget->tqparent() != par)
{
- QWidget * oldPar = (QWidget *)e->pWidget->parent();
+ QWidget * oldPar = (QWidget *)e->pWidget->tqparent();
e->pWidget->reparent(par,QPoint(0,0));
delete oldPar;
}