summaryrefslogtreecommitdiffstats
path: root/lib/kross/api/callable.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:56:31 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:56:31 -0600
commitc9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (patch)
tree1ee1912ac4bb966475f0db0f2a78678661b4b4a5 /lib/kross/api/callable.cpp
parent94844816550ad672ccfcdc25659c625546239998 (diff)
downloadkoffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.tar.gz
koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 94844816550ad672ccfcdc25659c625546239998.
Diffstat (limited to 'lib/kross/api/callable.cpp')
-rw-r--r--lib/kross/api/callable.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/kross/api/callable.cpp b/lib/kross/api/callable.cpp
index b85aa4cd..f095f596 100644
--- a/lib/kross/api/callable.cpp
+++ b/lib/kross/api/callable.cpp
@@ -47,26 +47,26 @@ const TQString Callable::getClassName() const
bool Callable::hasChild(const TQString& name) const
{
- return m_children.contains(name);
+ return m_tqchildren.contains(name);
}
Object::Ptr Callable::getChild(const TQString& name) const
{
- return m_children[name];
+ return m_tqchildren[name];
}
TQMap<TQString, Object::Ptr> Callable::getChildren() const
{
- return m_children;
+ return m_tqchildren;
}
bool Callable::addChild(const TQString& name, Object* object)
{
#ifdef KROSS_API_OBJECT_ADDCHILD_DEBUG
krossdebug( TQString("Kross::Api::Callable::addChild() object.name='%1' object.classname='%2'")
- .arg(name).arg(object->getClassName()) );
+ .tqarg(name).tqarg(object->getClassName()) );
#endif
- m_children.replace(name, Object::Ptr(object));
+ m_tqchildren.replace(name, Object::Ptr(object));
return true;
}
@@ -78,9 +78,9 @@ bool Callable::addChild(Callable* object)
void Callable::removeChild(const TQString& name)
{
#ifdef KROSS_API_OBJECT_REMCHILD_DEBUG
- krossdebug( TQString("Kross::Api::Callable::removeChild() name='%1'").arg(name) );
+ krossdebug( TQString("Kross::Api::Callable::removeChild() name='%1'").tqarg(name) );
#endif
- m_children.remove(name);
+ m_tqchildren.remove(name);
}
void Callable::removeAllChildren()
@@ -88,13 +88,13 @@ void Callable::removeAllChildren()
#ifdef KROSS_API_OBJECT_REMCHILD_DEBUG
krossdebug( "Kross::Api::Callable::removeAllChildren()" );
#endif
- m_children.clear();
+ m_tqchildren.clear();
}
Object::Ptr Callable::call(const TQString& name, List::Ptr args)
{
#ifdef KROSS_API_CALLABLE_CALL_DEBUG
- krossdebug( TQString("Kross::Api::Callable::call() name=%1 getName()=%2 arguments=%3").arg(name).arg(getName()).arg(args ? args->toString() : TQString("")) );
+ krossdebug( TQString("Kross::Api::Callable::call() name=%1 getName()=%2 arguments=%3").tqarg(name).tqarg(getName()).tqarg(args ? args->toString() : TQString("")) );
#endif
if(name.isEmpty()) // return a self-reference if no functionname is defined.
@@ -111,7 +111,7 @@ Object::Ptr Callable::call(const TQString& name, List::Ptr args)
TQString s = Variant::toString(args->item(0));
Object::Ptr obj = getChild(s);
if(! obj)
- throw Exception::Ptr( new Exception(TQString("The object '%1' has no child object '%2'").arg(getName()).arg(s)) );
+ throw Exception::Ptr( new Exception(TQString("The object '%1' has no child object '%2'").tqarg(getName()).tqarg(s)) );
return obj;
}
else if(name == "has") {
@@ -123,9 +123,9 @@ Object::Ptr Callable::call(const TQString& name, List::Ptr args)
}
else if(name == "list") {
TQStringList list;
- TQMap<TQString, Object::Ptr> children = getChildren();
- TQMap<TQString, Object::Ptr>::Iterator it( children.begin() );
- for(; it != children.end(); ++it)
+ TQMap<TQString, Object::Ptr> tqchildren = getChildren();
+ TQMap<TQString, Object::Ptr>::Iterator it( tqchildren.begin() );
+ for(; it != tqchildren.end(); ++it)
list.append( it.key() );
return new Variant(list);
}
@@ -134,6 +134,6 @@ Object::Ptr Callable::call(const TQString& name, List::Ptr args)
}
// If there exists no such object return NULL.
- krossdebug( TQString("Object '%1' has no callable object named '%2'.").arg(getName()).arg(name) );
+ krossdebug( TQString("Object '%1' has no callable object named '%2'.").tqarg(getName()).tqarg(name) );
return 0;
}