summaryrefslogtreecommitdiffstats
path: root/src/modules/options/mkcreateinstanceproc.sh
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
commit0a80cfd57d271dd44221467efb426675fa470356 (patch)
tree6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/modules/options/mkcreateinstanceproc.sh
parent3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff)
downloadkvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz
kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;
}