8 // WARNING: QtCollider::lockLang() must be called before
9 void QtCollider::runLang (
10 PyrObjectHdr
*receiver
,
12 const QList
<QVariant
> & args
,
15 VMGlobals
*g
= gMainVMGlobals
;
17 ++g
->sp
; SetObject(g
->sp
, receiver
);
18 Q_FOREACH( QVariant var
, args
) {
20 if( !Slot::setVariant( g
->sp
, var
) )
23 runInterpreter(g
, method
, args
.size() + 1);
25 if (result
) slotCopy(result
, &g
->result
);
28 int QtCollider::wrongThreadError ()
30 qcErrorMsg( "You can not use this Qt functionality in the current thread. "
31 "Try scheduling on AppClock instead." );