summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativeobjectscriptclass.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update licenseheader text in source files for qt4.8Jyri Tahtela2011-05-131-17/+17
| | | | | | | Updated version of LGPL and FDL licenseheaders. Apply release phase licenseheaders for all source files. Reviewed-by: Trust Me
* Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qml-staging into ↵Qt Continuous Integration System2011-05-041-0/+27
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | master-integration * 'master' of scm.dev.nokia.troll.no:qt/qt-qml-staging: QmlViewer: Translate UI Fix insert and scroll to bottom case QDeclarativeDebug: Fix test case QDeclarativeDebug: Handle case where client with ongoing queries is deleted Remove compile warning Fix QUnifiedTimer bug Stop the animation driver when there are no more animations. Optimization and benchmark for setting object properties from QML. Add Constant and Final flags to QMetaObjectBuilder Fixed QML TextEdit docs Make -no-opengl exist on other platforms Only ask for name when the user goes on the high score list.
| * Optimization and benchmark for setting object properties from QML.Michael Brasser2011-03-161-0/+27
| | | | | | | | | | Change-Id: Ib923e5d3946e99001ef682a9dd8ca6d7788818a3 Reviewed-by: Aaron Kennedy
* | Alternative fix to the strict-aliasing violation warningsThiago Macieira2011-04-181-1/+9
| | | | | | | | | | | | | | | | | | The code doesn't actually violate aliasing by doing type-punned dereferencing. The objects are always accessed as the right type. So disable the warning and pray that GCC doesn't optimise code out of existence. Reviewed-by: Trust Me
* | Revert "Fix strict-alias breaking warnings with GCC."Thiago Macieira2011-04-181-72/+43
| | | | | | | | | | | | | | | | | | | | | | This reverts commit 0d3044b547614cbd313d90021606af1f81fb10de. I'm not sure if this is good for anything. I can't reproduce the failures that happen on Mac and Windows, so let's try reverting the only patch that touches QtDeclarative. If this works, then we'll have found out that the code is broken and my patch only revealed the errors.
* | Fix strict-alias breaking warnings with GCC.Thiago Macieira2011-04-141-43/+72
|/ | | | | | | | | | | | GCC doesn't like any kind of reinterpret_cast or C-style cast with pointers. So instead do the work with static_cast<>, which it seems to like. Also took the opportunity to change the generic payload type to void*, so the alignment works as expected. I wonder how we haven't had serious crashes so far on ARM... Reviewed-by: Samuel Rødal
* Fix warnings in QtDeclarativeThiago Macieira2011-02-171-1/+1
|
* Fix test breakage for qdeclarativeworkerscriptBea Lam2011-01-281-1/+3
| | | | Broken by 43b8305367156c1ceb09eb4a056bdae3f325b5eb.
* Ensure simple objects also get the appropriate property cacheAaron Kennedy2011-01-281-1/+2
| | | | Task-number: QTBUG-13849
* Allow property bindings to be easily created from JavaScriptBea Lam2011-01-271-5/+14
| | | | | | | | Properties can now be assigned a function that returns the binding value. Task-number: QTBUG-14964 Reviewed-by: Aaron Kennedy
* Implement property versioning inside the declarative engineAaron Kennedy2011-01-271-15/+6
| | | | Task-number: QTBUG-13451
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into qtquick11Martin Jones2011-01-191-1/+1
|\
| * Update copyright year to 2011.Jason McDonald2011-01-101-1/+1
| | | | | | | | Reviewed-by: Trust Me
* | Support property/method versions in QMLMartin Jones2011-01-051-0/+14
|/ | | | | | | | Use metaobject revisioning to exclude properties/revisions added in later versions from interfering with earlier versions. Task-number: QTBUG-13451 Reviewed-by: Aaron Kennedy
* Correct ownership semantics for QObject derived typesAaron Kennedy2010-11-301-2/+9
| | | | Task-number: QTBUG-15697
* Fix compilation by s/intptr_t/quintptr/Thiago Macieira2010-11-111-1/+1
| | | | | | | | | intptr_t is defined in some C header that we don't include. I don't know which one it is, but without it, it fails to compile with: declarative/qml/qdeclarativecontext.cpp:477: error: 'intptr_t' was not declared in this scope Reviewed-By: Trust Me
* Allow overloaded methods, and methods with default params, to be called in QMLAaron Kennedy2010-10-151-13/+285
| | | | Task-number: QTBUG-11604
* Allow objectName to be used in QML bindingsAaron Kennedy2010-10-111-2/+7
| | | | Task-number: QTBUG-13999
* Fix compile warnings.Friedemann Kleint2010-09-141-1/+1
| | | | Reviewed-by: Thomas Hartmann <thomas.hartmann@nokia.com>
* Support passing QObject derived types to QML methodsAaron Kennedy2010-09-031-2/+14
| | | | QTBUG-13047
* Support JS "in" operator on QML objectsAaron Kennedy2010-09-011-1/+1
| | | | QTBUG-12837
* Handle enums in method arguments in the same way as QtScriptAaron Kennedy2010-06-251-1/+23
| | | | | | | QML will now invoke methods with enums as arguments, in the same fashion as QtScript. QTBUG-11313
* Compiler warningAaron Kennedy2010-05-241-1/+1
| | | | QTBUG-10816
* Null objects should appear as JS nullAaron Kennedy2010-05-051-1/+2
|
* Fix a crash with null objects returned from a Q_INVOKABLERhys Weatherley2010-05-051-1/+2
| | | | | Task-number: QTBUG-10412 Reviewed-by: Aaron Kennedy
* Fix error stringBea Lam2010-04-301-1/+1
|
* Warn on assigning a function to a QML property.Michael Brasser2010-04-291-0/+3
| | | | | | | | | This is not supported, and should not silently be converting the function to a string. See QTBUG-10302 for why we check !isRegExp as well as isFunction. Task-number: QTBUG-10237 Reviewed-by: Aaron Kennedy
* Return enum property values as numbers, not QVariant valuesBea Lam2010-04-291-1/+1
| | | | | Task-number: QTBUG-10291 Reviewed-by: akennedy
* Allow null to be assigned to object propertiesAaron Kennedy2010-04-201-1/+7
|
* List properties for dynamic meta objects.Warwick Allison2010-04-191-5/+14
| | | | | | | Real solution is probably to fix/rewrite/dispose of QDeclarativeOpenMetaObject. Task-number: QTBUG-9420 Reviewed-by: Michael Brasser
* Reference count ObjectData's to correctly delete objects with no parentAaron Kennedy2010-04-191-2/+7
| | | | QTBUG-9872
* Rename the ridiculous QDeclarativeDeclarativeData -> QDeclarativeDataAaron Kennedy2010-04-151-7/+7
|
* Allow undefined to be assigned to QVariant propertiesAaron Kennedy2010-04-091-0/+2
| | | | QTBUG-9704
* List properties aren't read-onlyAaron Kennedy2010-04-091-1/+2
|
* Use variant instead of var in QMLAaron Kennedy2010-04-091-6/+1
| | | | | | In QML "var"s are not the same as JavaScript vars - they are QVariants instead. However, as they behave in a similar enough fashion to native JavaScript it can be confusing to developers when they are called "var".
* Make script and binding assignments identical for list propertiesAaron Kennedy2010-04-081-1/+5
|
* Cleanup handling of errors in bindings and scriptsAaron Kennedy2010-04-081-24/+44
| | | | | | | | | | | | | QML used to silently ignore a log of errors - such as a failed assignment to a QObject property. These errors are now all reported as exceptions in JavaScript. Other questionable activities, like assigning a JavaScript array to a "property var" property which appeared to work, thanks to QtScript's transparent conversion of arrays to a QVariantList, are now blocked entirely. QTBUG-9152 QTBUG-9382 QTBUG-9341 QTBUG-6886
* Do not create a QScriptValue for an object being deletedAaron Kennedy2010-04-081-0/+3
|
* Cleanup (remove QDeclarativeScriptClass)Aaron Kennedy2010-04-071-11/+8
| | | | | QDeclarativeScriptClass only existed to make compiling against 4.6 and 4.7 easier.
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Aaron Kennedy2010-04-071-10/+10
|\
| * Update #include of private headers in QtDeclarativeThiago Macieira2010-04-021-10/+10
| | | | | | | | | | Always use private/. The WinSCW compiler doesn't search the current directory, for whatever reason.
* | Optimization: Only allocate QScriptValue if we need tooAaron Kennedy2010-04-011-5/+5
|/
* Remove warningsYann Bodson2010-03-181-29/+30
|
* Optimization: Reduce unnecessary QObject allocationsAaron Kennedy2010-03-171-11/+7
|
* Fix crash on 32-bit platformsAaron Kennedy2010-03-121-1/+1
|
* Improve value type binding behaviorAaron Kennedy2010-03-111-1/+2
| | | | | | | | | | | | | | Changing value type bindings in state changes, and implicitly removing them on property assignment was not reliable. Internally the system considered a binding on "font" and one on "font.x" as a binding on two separate properties, even though the "font" binding completely overrides the "font.x" property. Following this change a binding to "font.x" creates a proxy binding object on the "font" property in addition to the "font.x" binding itself. This allows behavior to be consistent across all operations. QT-2920
* Add QML support for methods returning QList<QObject *>Aaron Kennedy2010-03-091-35/+55
|
* Integrate QML's object ownership with the JS collectorAaron Kennedy2010-03-091-14/+51
| | | | | | | QML now behaves in a way similar to QtScript when it comes to QObject ownership. QT-2803
* Add support for QtScript connect/disconnect syntax in QMLAaron Kennedy2010-03-051-0/+81
| | | | | | | This support was accidentally removed as a consequence of 4a665ff5da05860f5eb46e3982ef3d8163a6cf59. QTBUG-8001
* Compile without QVariant::EasingCurve in Qt 4.6.2.Warwick Allison2010-03-041-1/+1
|