Rename additional members for tqt3

pull/1/head
Timothy Pearson 13 years ago
parent 1192a5120d
commit e43514f1d5

@ -40,8 +40,8 @@ KHTMLReader::KHTMLReader(KWDWriter *w)
}
// if a troll ever sees this, he can't kill me anyway. (and he should kill dfaure first)
void qt_enter_modal( TQWidget *widget );
void qt_leave_modal( TQWidget *widget );
void tqt_enter_modal( TQWidget *widget );
void tqt_leave_modal( TQWidget *widget );
bool KHTMLReader::filter(KURL url)
@ -66,9 +66,9 @@ bool KHTMLReader::filter(KURL url)
//FIXME use synchronous IO instead of this hack if possible.
TQWidget dummy(0,0,WType_Dialog | WShowModal);
qt_enter_modal(&dummy);
tqt_enter_modal(&dummy);
tqApp->enter_loop();
qt_leave_modal(&dummy);
tqt_leave_modal(&dummy);
return _it_worked;
}

@ -321,11 +321,11 @@ KSharedPtr<Variable> MetaMethod::invoke(Variable::List arguments)
switch( d->type ) {
case Signal: {
int index = d->object->indexOfSignal( d->signature.latin1() );
obj->qt_emit(index, qu);
obj->tqt_emit(index, qu);
} break;
case Slot: {
int index = d->object->indexOfSlot( d->signature.latin1() );
obj->qt_invoke(index, qu);
obj->tqt_invoke(index, qu);
} break;
default: {
throw Exception("Unknown type.");

@ -81,7 +81,7 @@ bool KugarPart::loadXML( TQIODevice *file, const TQDomDocument & /*doc*/ )
{
for ( KoView * v = vs.first();v;v = vs.next() )
{
ok = static_cast<KugarView*>( v->qt_cast( "KugarView" ) ) ->renderReport();
ok = static_cast<KugarView*>( v->tqt_cast( "KugarView" ) ) ->renderReport();
if ( !ok )
break;
}

@ -59,7 +59,7 @@ Object::Ptr EventSignal::call(const TQString& /*name*/, KSharedPtr<List> argumen
throw new Exception(TQString("No such signal '%1'.").arg(n));
TQUObject* uo = QtObject::toTQUObject(n, arguments);
m_sender->qt_emit(signalid, uo); // emit the signal
m_sender->tqt_emit(signalid, uo); // emit the signal
delete [] uo;
return new Variant( TQVariant(true,0) );

@ -59,7 +59,7 @@ Object::Ptr EventSlot::call(const TQString& /*name*/, List::Ptr arguments)
throw Exception::Ptr( new Exception(TQString("No such slot '%1'.").arg(n)) );
TQUObject* uo = QtObject::toTQUObject(n, arguments);
m_receiver->qt_invoke(slotid, uo); // invoke the slot
m_receiver->tqt_invoke(slotid, uo); // invoke the slot
delete [] uo;
return new Variant( TQVariant(true,0) );

@ -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)) );
TQUObject* uo = QtObject::toTQUObject(name, args);
m_object->qt_invoke(slotid, uo);
m_object->tqt_invoke(slotid, uo);
delete [] uo;
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);
if(signalid < 0)
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;
}

Loading…
Cancel
Save