|
|
@ -178,7 +178,7 @@ Kross::Api::Object::Ptr QtObject::callSlot(Kross::Api::List::Ptr args)
|
|
|
|
throw Exception::Ptr( new Exception(TQString("No such slot '%1'.").arg(name)) );
|
|
|
|
throw Exception::Ptr( new Exception(TQString("No such slot '%1'.").arg(name)) );
|
|
|
|
|
|
|
|
|
|
|
|
TQUObject* uo = QtObject::toTQUObject(name, args);
|
|
|
|
TQUObject* uo = QtObject::toTQUObject(name, args);
|
|
|
|
m_object->qt_invoke(slotid, uo);
|
|
|
|
m_object->tqt_invoke(slotid, uo);
|
|
|
|
delete [] uo;
|
|
|
|
delete [] uo;
|
|
|
|
|
|
|
|
|
|
|
|
return new Variant( TQVariant(true,0) );
|
|
|
|
return new Variant( TQVariant(true,0) );
|
|
|
@ -204,7 +204,7 @@ Kross::Api::Object::Ptr QtObject::emitSignal(Kross::Api::List::Ptr args)
|
|
|
|
int signalid = m_object->metaObject()->findSignal(name.latin1(), false);
|
|
|
|
int signalid = m_object->metaObject()->findSignal(name.latin1(), false);
|
|
|
|
if(signalid < 0)
|
|
|
|
if(signalid < 0)
|
|
|
|
throw Exception::Ptr( new Exception(TQString("No such signal '%1'.").arg(name)) );
|
|
|
|
throw Exception::Ptr( new Exception(TQString("No such signal '%1'.").arg(name)) );
|
|
|
|
m_object->qt_invoke(signalid, 0); //TODO convert Kross::Api::List::Ptr => TQUObject*
|
|
|
|
m_object->tqt_invoke(signalid, 0); //TODO convert Kross::Api::List::Ptr => TQUObject*
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|