summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptprogram.cpp
Commit message (Collapse)AuthorAgeFilesLines
* add missing includeRolland Dudemaine2011-02-221-0/+1
| | | | | Merge-request: 1101 Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
* Invalidate QScriptPrograms when engine is destroyedKent Hansen2011-01-281-7/+14
| | | | | | | | | | | | | | | | | | If the engine is destroyed before the program, the program must be invalidated; otherwise the program destructor will access a stale engine pointer, which can cause a crash (it crashes on Symbian, but "only" gives a Valgrind warning on Linux for our autotests). We need to keep track of all associated programs, just like we already do for values and strings. This fix follows the exact same pattern, but uses a QSet to keep the patch minimal. No new tests, but the evaluateProgram() test runs successfully on Symbian now, and there are no more Valgrind warnings. Task-number: QTBUG-16987 Reviewed-by: Olivier Goffart
* Update copyright year to 2011.Jason McDonald2011-01-101-1/+1
| | | | Reviewed-by: Trust Me
* doc: Remove \internal tag from QScriptProgramKent Hansen2010-08-311-3/+1
| | | | | | | | The class has been there since 4.6 (http://labs.trolltech.com/blogs/2009/11/23/qtscript-in-46/), but we don't see a reason to hide it any longer. Task-number: QTBUG-13229 Reviewed-by: Olivier Goffart
* Fix crash on QScriptProgram destructionAaron Kennedy2010-04-121-0/+4
|
* QScript: fix compilation warningOlivier Goffart2010-04-011-1/+1
|
* Use RefPtr to store QScriptProgram's EvalExecutableKent Hansen2010-02-011-5/+4
| | | | | Otherwise we crash with latest WebKit trunk because the SourceProvider is prematurely destructed.
* Update copyright year to 2010Jason McDonald2010-01-061-1/+1
| | | | Reviewed-by: Trust Me
* Fixed the QtScript license information in the source files to referSimon Hausmann2009-11-171-19/+1
| | | | | | | | to the LGPL only. To do this I ran replace-licenses.zsh $QTDIR/src/script release Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Replace LGPL license tags with LGPL-ONLYSimon Hausmann2009-11-171-1/+1
| | | | Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Say hello to QScriptProgram :-)Kent Hansen2009-10-281-0/+225
QScriptProgram encapsulates a Qt Script program (AKA a script). It retains the compiled representation of the script, so that repeated evaluation of the same script becomes faster. An overload of QScriptEngine::evaluate() that takes a QScriptProgram has been added. Reviewed-by: Olivier Goffart