summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptcontext.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-08-03 05:39:57 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-08-03 05:39:57 (GMT)
commit68c0ff0c7f1e65fb55b08a1fb9baab8176eb726c (patch)
treee3ae65fb615a4b06d774415fd2d742170104d9ce /src/script/api/qscriptcontext.cpp
parentb7702b2dcbc36f81759dea0ad74fb19e97b2358f (diff)
parente62f266a7642e675e9d235a1f54a6b5746500d48 (diff)
downloadQt-68c0ff0c7f1e65fb55b08a1fb9baab8176eb726c.zip
Qt-68c0ff0c7f1e65fb55b08a1fb9baab8176eb726c.tar.gz
Qt-68c0ff0c7f1e65fb55b08a1fb9baab8176eb726c.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'src/script/api/qscriptcontext.cpp')
-rw-r--r--src/script/api/qscriptcontext.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/script/api/qscriptcontext.cpp b/src/script/api/qscriptcontext.cpp
index 3f08e74..1a11100 100644
--- a/src/script/api/qscriptcontext.cpp
+++ b/src/script/api/qscriptcontext.cpp
@@ -323,6 +323,9 @@ QScriptValue QScriptContext::argumentsObject() const
When a function is called as constructor, the thisObject()
contains the newly constructed object to be initialized.
+
+ \note This function is only guarenteed to work for a context
+ corresponding to native functions.
*/
bool QScriptContext::isCalledAsConstructor() const
{
@@ -413,6 +416,9 @@ void QScriptContext::setReturnValue(const QScriptValue &result)
object provides access to the local variables associated with this
context.
+ \note The activation object might not be available if there is no
+ active QScriptEngineAgent, as it might be optimized.
+
\sa argument(), argumentsObject()
*/
@@ -472,6 +478,10 @@ QScriptValue QScriptContext::activationObject() const
activation.
If \a activation is not an object, this function does nothing.
+
+ \note For a context corresponding to a JavaScript function, this is only
+ guarenteed to work if there was an QScriptEngineAgent active on the
+ engine while the function was evaluated.
*/
void QScriptContext::setActivationObject(const QScriptValue &activation)
{