summaryrefslogtreecommitdiffstats
path: root/src/script/bridge/qscriptqobject_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix obsolete license headers.Jason McDonald2009-08-211-1/+1
| | | | Reviewed-by: Trust Me
* CleanupsOlivier Goffart2009-08-191-2/+1
| | | | | Remove useless variable. Use QBoolBlocker instread of custom QScript::InEval.
* add configure options for (not) building the QtScript moduleKent Hansen2009-08-071-4/+0
| | | | | | | | | | | | | | | | | | -script (default) and -no-script. This means we can get rid of the SCRIPT feature from qfeatures, since it's now handled by the new configure variable. It also allows us to get rid of all the QT_NO_SCRIPT ifdefs from the source files, since qmake isn't going to include those files for compilation when you configure with -no-script. The QtScriptTools module will be disabled if the QtScript module is not built. You'll have to build the old QtScript back-end (will be made available in a separate package), then build the QtScriptTools module yourself. Reviewed-by: Simon Hausmann
* port commit 47c9e7b1b3551ff6dbe71590461a45ae398a9501 from qt/masterKent Hansen2009-08-061-1/+2
|
* Updates getPropertyNames() on all javascript object to use the flagBenjamin Poulain2009-08-051-2/+2
| | | | | | | | getPropertyNames() now uses a flag to specify which property should be filtered. This flag should be used by all javascript objects. This patch fixes the changes introduced by e520df1f8678bd59adb341fb586f008a7de17fe8
* make QScriptEngine::newQMetaObject() workKent Hansen2009-08-051-2/+3
|
* adapt to commit 014c4c63066fd3920594e6a58b02f314b5c88cdfKent Hansen2009-08-041-2/+4
|
* QScriptValueIterator: fix missing non-enumerable valuesTor Arne Vestbø2009-07-311-2/+4
| | | | | | | | | | Added an extra argument to JSObject::getPropertyNames() that specifies if the non-enumerable properties (those with the DontEnum attribute set) should be included or not. Tried looking at using a unsigned as an attribute-inclusion or exclusion filter, but the semantics of either the calling or the callee code would be very strange so I opted out.
* Fix license headersOlivier Goffart2009-07-291-5/+35
|
* start implementing constructors for QMetaObject wrappersKent Hansen2009-07-161-0/+11
|
* implement QObject prototype objectKent Hansen2009-07-151-0/+9
|
* implement QObject wrapper caching (PreferExistingWrapperObject)Kent Hansen2009-07-151-1/+19
|
* implement ability to dynamically change class of script objectsKent Hansen2009-07-101-27/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | With an object created by QScriptEngine::newObject(), it should be possible to call QScriptValue::setClass() to dynamically change the behavior of that object. Similarly, it should be possible to promote plain script objects to QObject (QVariant) wrappers by calling the overload of QScriptEngine::newQObject() (newVariant()) that takes a script object as the first argument. This commit implements this capability. The premise is the (internal) QScriptObject class, which inherits JSC::JSObject. It reimplements all the methods for getting/setting properties etc. Then there's a level of indirection to facilitate dynamic change of the class: Each QScriptObject can have a delegate associated with it that will handle operations on the object. By default there is no delegate, so the object behaves as a normal JS object, as you expect. However, once a delegate is set (e.g., when QScriptValue::setScriptClass() is called), QScriptObject will give the delegate the chance to handle the object operation. In addition to a delegate implementation for QScriptClass-based objects, there are also delegates for QObject and QVariant wrappers. These replace the QObjectWrapperObject and QVariantWrapperObject classes.
* rewrite most of QScriptContext handlingKent Hansen2009-07-081-0/+3
| | | | Do it The right way(TM), by lazily wrapping JSC::ExecState objects.
* first stab at implementing Qt property getter/settersKent Hansen2009-07-021-2/+40
| | | | Not fully working yet, so disabled for now
* implement caching of slot wrapper functionsKent Hansen2009-07-021-0/+3
|
* implement QScriptValue::QObjectMember property flagKent Hansen2009-07-021-0/+5
|
* implement QMetaObject bindingsKent Hansen2009-06-261-0/+53
|
* work on signal bindings (connect, disconnect, signal emission)Kent Hansen2009-06-241-2/+43
|
* rename createStructureID() functionKent Hansen2009-06-241-1/+1
| | | | | The JSC function was renamed, so we need to do so too, otherwise we call the function defined in the base class.
* Import JSC-based Qt Script from Kent's tree.Simon Hausmann2009-06-161-0/+134