summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/macros/lib/metaobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/macros/lib/metaobject.cpp')
-rw-r--r--kexi/plugins/macros/lib/metaobject.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kexi/plugins/macros/lib/metaobject.cpp b/kexi/plugins/macros/lib/metaobject.cpp
index e9e56b44..ee865c82 100644
--- a/kexi/plugins/macros/lib/metaobject.cpp
+++ b/kexi/plugins/macros/lib/metaobject.cpp
@@ -77,31 +77,31 @@ TQObject* const MetaObject::object() const
/*
TQStrList MetaObject::signalNames() const
{
- return object()->tqmetaObject()->signalNames();
+ return object()->metaObject()->signalNames();
}
TQStrList MetaObject::slotNames() const
{
- return object()->tqmetaObject()->slotNames();
+ return object()->metaObject()->slotNames();
}
*/
int MetaObject::indexOfSignal(const char* signal) const
{
- TQMetaObject* metaobject = object()->tqmetaObject();
+ TQMetaObject* metaobject = object()->metaObject();
int signalid = metaobject->findSignal(signal, false);
if(signalid < 0) {
- throw Exception(TQString("Invalid signal \"%1\"").tqarg(signal));
+ throw Exception(TQString("Invalid signal \"%1\"").arg(signal));
}
return signalid;
}
int MetaObject::indexOfSlot(const char* slot) const
{
- TQMetaObject* metaobject = object()->tqmetaObject();
+ TQMetaObject* metaobject = object()->metaObject();
int slotid = metaobject->findSlot(slot, false);
if(slotid < 0) {
- throw Exception(TQString("Invalid slot \"%1\"").tqarg(slot));
+ throw Exception(TQString("Invalid slot \"%1\"").arg(slot));
}
return slotid;
}
@@ -110,7 +110,7 @@ KSharedPtr<MetaMethod> MetaObject::method(int index)
{
TQObject* obj = object();
MetaMethod::Type type = MetaMethod::Slot;
- TQMetaObject* metaobject = obj->tqmetaObject();
+ TQMetaObject* metaobject = obj->metaObject();
const TQMetaData* metadata = metaobject->slot(index, true);
if(! metadata) {
@@ -119,13 +119,13 @@ KSharedPtr<MetaMethod> MetaObject::method(int index)
metadata = metaobject->signal(index, true);
if(! metadata) {
- throw Exception(TQString("Invalid method index \"%1\" in object \"%2\"").tqarg(index).tqarg(obj->name()));
+ throw Exception(TQString("Invalid method index \"%1\" in object \"%2\"").arg(index).arg(obj->name()));
}
type = MetaMethod::Signal;
}
if(metadata->access != TQMetaData::Public) {
- throw Exception(TQString("Not allowed to access method \"%1\" in object \"%2\"").tqarg(metadata->name).tqarg(obj->name()));
+ throw Exception(TQString("Not allowed to access method \"%1\" in object \"%2\"").arg(metadata->name).arg(obj->name()));
}
return new MetaMethod(metadata->name, type, this);