summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativecontextscriptclass.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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
* Resolve unqualified attached properties correctlyAaron Kennedy2011-04-151-8/+8
| | | | | | | | | | | | | | | | | | | | | | When resolving unqualified attached properties, we should use the scope object, not the context object. Otherwise they will always resolve to the root object of the context, regardless of where they are written. In this example, QtObject { id: root QtObject { id: me property int a: AttachedObject.x } } the attached object should be loaded on the "me" object, not the "root" object. Change-Id: I386f886f62df7b8020c3ff703cdfc891d5739713 Reviewed-by: Martin Jones
* Update copyright year to 2011.Jason McDonald2011-01-101-1/+1
| | | | Reviewed-by: Trust Me
* Missing files from 645b9ee9dd6e0576542cc61872ecedb408ca8a89Aaron Kennedy2010-05-141-2/+44
| | | | Grrr
* Remove Script {} supportAaron Kennedy2010-04-191-8/+0
|
* Cleanup handling of errors in bindings and scriptsAaron Kennedy2010-04-081-1/+1
| | | | | | | | | | | | | 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
* Cleanup (remove QDeclarativeScriptClass)Aaron Kennedy2010-04-071-2/+2
| | | | | QDeclarativeScriptClass only existed to make compiling against 4.6 and 4.7 easier.
* Update #include of private headers in QtDeclarativeThiago Macieira2010-04-021-6/+6
| | | | | Always use private/. The WinSCW compiler doesn't search the current directory, for whatever reason.
* Deprecate inline Script {} blocksAaron Kennedy2010-03-221-4/+12
| | | | | | | | Inline blocks/includes have been replaced with an import syntax: import "foo.js" as Foo this gives better separation between QML and code. Imported script blocks also have a mandatory qualifier, which leads to better optimization potential.
* Optimization: Reduce unnecessary QObject allocationsAaron Kennedy2010-03-171-32/+30
|
* Optimization: Use id notifier for QtScript bindingsAaron Kennedy2010-03-171-3/+6
|
* Replace QDeclarativeContext::addDefaultObject() -> setContextObject()Aaron Kennedy2010-03-111-18/+8
| | | | It is faster and easier to use to just support a single context object.
* Minor perf improvement when running QML script blocksAaron Kennedy2010-03-051-2/+3
| | | | | There is no need to capture a property access if a binding is not being evaluated.
* Save secondary scope inside the expression's scope objectAaron Kennedy2010-03-031-2/+28
| | | | | | | This prevents the secondary scope from contaminating scopes outside itself when used as a signal expression. QTBUG-8641
* Change class prefix to from QmlXXX to QDeclarativeXXX, QmlGraphicsXXX to ↵Warwick Allison2010-02-241-0/+275
QDeclarativeXXX.