summaryrefslogtreecommitdiffstats
path: root/src/kvirc/kvs/kvi_kvs_object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvirc/kvs/kvi_kvs_object.cpp')
-rw-r--r--src/kvirc/kvs/kvi_kvs_object.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/kvirc/kvs/kvi_kvs_object.cpp b/src/kvirc/kvs/kvi_kvs_object.cpp
index 572ea1ac..c6d9fcb9 100644
--- a/src/kvirc/kvs/kvi_kvs_object.cpp
+++ b/src/kvirc/kvs/kvi_kvs_object.cpp
@@ -742,7 +742,7 @@ bool KviKvsObject::connectSignal(const TQString &sigName,KviKvsObject * pTarget,
m_pSignalDict->setAutoDelete(true);
}
- KviKvsObjectConnectionList * l = m_pSignalDict->tqfind(sigName);
+ KviKvsObjectConnectionList * l = m_pSignalDict->find(sigName);
if(!l)
{
l = new KviKvsObjectConnectionList;
@@ -776,7 +776,7 @@ bool KviKvsObject::disconnectSignal(const TQString &sigName,KviKvsObject * pTarg
{
if(!m_pSignalDict)return false; //no such signal to disconnect
- KviKvsObjectConnectionList * l = m_pSignalDict->tqfind(sigName);
+ KviKvsObjectConnectionList * l = m_pSignalDict->find(sigName);
if(!l)return false;
KviKvsObjectConnectionListIterator it(*l);
@@ -806,11 +806,11 @@ bool KviKvsObject::disconnectSignal(const TQString &sigName,KviKvsObject * pTarg
bool KviKvsObject::disconnectSignal(const TQString &sigName,KviKvsObjectConnection * pConnection)
{
if(!m_pSignalDict)return false;
- KviKvsObjectConnectionList * l = m_pSignalDict->tqfind(sigName);
+ KviKvsObjectConnectionList * l = m_pSignalDict->find(sigName);
//__range_valid(l);
if(!l)return false;
pConnection->pTargetObject->unregisterConnection(pConnection);
- //__range_valid(l->tqfindRef(pConnection) > -1);
+ //__range_valid(l->findRef(pConnection) > -1);
l->removeRef(pConnection);
if(l->isEmpty())m_pSignalDict->remove(sigName);
if(m_pSignalDict->isEmpty())
@@ -838,7 +838,7 @@ int KviKvsObject::emitSignal(const TQString &sigName,KviKvsObjectFunctionCall *
{
if(!m_pSignalDict)return 0;
- KviKvsObjectConnectionList * l = m_pSignalDict->tqfind(sigName);
+ KviKvsObjectConnectionList * l = m_pSignalDict->find(sigName);
if(!l)return 0; // no slots registered
KviKvsVariant retVal;
@@ -1156,7 +1156,7 @@ bool KviKvsObject::function_setProperty(KviKvsObjectFunctionCall * c)
#ifdef COMPILE_USE_QT4
int idx = m_pObject->tqmetaObject()->indexOfProperty(szName);
#else
- int idx = m_pObject->tqmetaObject()->tqfindProperty(szName,true);
+ int idx = m_pObject->tqmetaObject()->findProperty(szName,true);
#endif
if(idx < 0)
{
@@ -1305,12 +1305,12 @@ bool KviKvsObject::function_setProperty(KviKvsObjectFunctionCall * c)
TQFont fnt;
fnt.setFamily(szFf);
fnt.setPointSize(iPs);
- if(szFl.tqfind('b') != -1)fnt.setBold(true);
- if(szFl.tqfind('i') != -1)fnt.setItalic(true);
- if(szFl.tqfind('u') != -1)fnt.setUnderline(true);
- if(szFl.tqfind('o') != -1)fnt.setOverline(true);
- if(szFl.tqfind('f') != -1)fnt.setFixedPitch(true);
- if(szFl.tqfind('s') != -1)fnt.setStrikeOut(true);
+ if(szFl.find('b') != -1)fnt.setBold(true);
+ if(szFl.find('i') != -1)fnt.setItalic(true);
+ if(szFl.find('u') != -1)fnt.setUnderline(true);
+ if(szFl.find('o') != -1)fnt.setOverline(true);
+ if(szFl.find('f') != -1)fnt.setFixedPitch(true);
+ if(szFl.find('s') != -1)fnt.setStrikeOut(true);
m_pObject->setProperty(szName,TQVariant(fnt));
}
break;
@@ -1387,7 +1387,7 @@ bool KviKvsObject::function_property(KviKvsObjectFunctionCall * c)
#ifdef COMPILE_USE_QT4
int idx = m_pObject->tqmetaObject()->indexOfProperty(szName);
#else
- int idx = m_pObject->tqmetaObject()->tqfindProperty(szName,true);
+ int idx = m_pObject->tqmetaObject()->findProperty(szName,true);
#endif
if(idx < 0)
{
@@ -1564,7 +1564,7 @@ KviKvsObjectFunctionHandler * KviKvsObject::lookupFunctionHandler(const TQString
if(classOverride.isEmpty() && m_pFunctionHandlers)
{
// lookup the local overrides
- h = m_pFunctionHandlers->tqfind(funcName);
+ h = m_pFunctionHandlers->find(funcName);
}
if(!h)
@@ -1711,7 +1711,7 @@ void KviKvsObject::registerPrivateImplementation(const TQString &szFunctionName,
szContext += "[privateimpl]::";
szContext += szFunctionName;
- m_pFunctionHandlers->tqreplace(szFunctionName,new KviKvsObjectScriptFunctionHandler(szContext,szCode));
+ m_pFunctionHandlers->replace(szFunctionName,new KviKvsObjectScriptFunctionHandler(szContext,szCode));
}
}