summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativeobjectscriptclass.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-291-24/+24
| | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I280c0a575987d1770e354b4948f1d4d767d711ea Reviewed-by: Simo Fält <simo.falt@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Revert "Delete JS-owned QML objects right away in the engine dtor."Peter Kümmel2012-09-251-17/+3
| | | | | | | | | | | This reverts commit ecc432a5b7ae269220f86c6f0b3dd364f8643191 to fix a crash on exit. Task-number: QTBUG-20377 Change-Id: I6606ff194f2c16e06bdbbfca94e55821cf055f75 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* Delete JS-owned QML objects right away in the engine dtor.Thomas McGuire2012-09-141-3/+17
| | | | | | | | | | | This prevents memory leaks when the engine is destroyed after exec() has already finished. In most cases this happens during application shutdown, at which point the event loop is never entered again. Task-number: QTBUG-20377 Change-Id: I65564ed3e56314d656d92fd66f11ae67d4eb932b Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Update contact information in license headers.Sergio Ahumada2012-08-011-2/+2
| | | | | | | | | | | | | - Replace Nokia contact email address with Qt Project website. - Remove "All rights reserved" line from license headers. As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: Ie7ba62011752fcb149b99b26317c54f2a0cfa931 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Update year in Nokia copyright messages.Jason McDonald2012-01-111-1/+1
| | | | | | | | | Simple search and replace. This commit doesn't touch 3rd-party files, nor translations (where the change is not so simple and will be handled in a separate commit). Change-Id: I4e48513b8078a44a8cd272326685b25338890148 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix alias warnings in MetaCallArgumentAaron Kennedy2011-07-291-49/+65
|
* 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-051-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-111-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-301-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-191-29/+30
|
* Optimization: Reduce unnecessary QObject allocationsAaron Kennedy2010-03-171-11/+7
|