equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the test suite of the Qt Toolkit. |
7 ** This file is part of the test suite of the Qt Toolkit. |
8 ** |
8 ** |
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 |