equal
deleted
inserted
replaced
170 static int _q_ScriptRegisterQObjectMetaType(QScriptEngine *engine, const QScriptValue &prototype) |
170 static int _q_ScriptRegisterQObjectMetaType(QScriptEngine *engine, const QScriptValue &prototype) |
171 { |
171 { |
172 return qScriptRegisterMetaType<T*>(engine, _q_ScriptValueFromQObject<T>, _q_ScriptValueToQObject<T>, prototype); |
172 return qScriptRegisterMetaType<T*>(engine, _q_ScriptValueFromQObject<T>, _q_ScriptValueToQObject<T>, prototype); |
173 } |
173 } |
174 |
174 |
|
175 QT_BEGIN_NAMESPACE |
175 Q_SCRIPT_DECLARE_QMETAOBJECT(QScriptLocalSocket, QObject*); |
176 Q_SCRIPT_DECLARE_QMETAOBJECT(QScriptLocalSocket, QObject*); |
176 Q_SCRIPT_DECLARE_QMETAOBJECT(QScriptLocalServer, QObject*); |
177 Q_SCRIPT_DECLARE_QMETAOBJECT(QScriptLocalServer, QObject*); |
|
178 QT_END_NAMESPACE |
177 |
179 |
178 static void interactive(QScriptEngine &eng) |
180 static void interactive(QScriptEngine &eng) |
179 { |
181 { |
180 QTextStream qin(stdin, QFile::ReadOnly); |
182 QTextStream qin(stdin, QFile::ReadOnly); |
181 |
183 |