コード例 #1
0
 ::QString sipQScriptClass::name() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_name);

    if (!sipMeth)
        return  ::QScriptClass::name();

    extern  ::QString sipVH_QtScript_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtScript_6(sipGILState, 0, sipPySelf, sipMeth);
}
コード例 #2
0
void sipQScriptEngineAgent::scriptLoad(qint64 a0,const QString& a1,const QString& a2,int a3)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_scriptLoad);

    if (!meth)
    {
        QScriptEngineAgent::scriptLoad(a0,a1,a2,a3);
        return;
    }

    extern void sipVH_QtScript_6(sip_gilstate_t,PyObject *,PY_LONG_LONG,const QString&,const QString&,int);

    sipVH_QtScript_6(sipGILState,meth,a0,a1,a2,a3);
}