running thread Definition at line 82 of file aithread.cpp. 00083 { 00084 { 00085 QString script; 00086 00087 { 00088 QFile file(m_file); 00089 file.open(QIODevice::ReadOnly); 00090 script = file.readAll(); 00091 file.close(); 00092 } 00093 00094 QScriptEngine engine; 00095 QScriptValue zone = engine.newQObject( &m_zone ); 00096 engine.globalObject().setProperty( "zone" , zone ); 00097 00098 engine.evaluate( script ); 00099 00100 } 00101 emit completed( &m_zone ); 00102 } |