summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptvalue_p.h
diff options
context:
space:
mode:
authorJedrzej Nowacki <jedrzej.nowacki@nokia.com>2009-07-09 11:03:48 (GMT)
committerJedrzej Nowacki <jedrzej.nowacki@nokia.com>2009-07-09 11:33:23 (GMT)
commit5bf417cf836636aab1dcadffaa73f26966880dff (patch)
tree7a98577d2399a06631666a5b2249d5d574bf76bc /src/script/api/qscriptvalue_p.h
parentdadfb997897141ccd47808b2e9b38807f0042c53 (diff)
downloadQt-5bf417cf836636aab1dcadffaa73f26966880dff.zip
Qt-5bf417cf836636aab1dcadffaa73f26966880dff.tar.gz
Qt-5bf417cf836636aab1dcadffaa73f26966880dff.tar.bz2
Fix autotest checking QScriptValue::objectId method.
(QScriptValue::objectId() and QScriptEnigne::objectById)
Diffstat (limited to 'src/script/api/qscriptvalue_p.h')
-rw-r--r--src/script/api/qscriptvalue_p.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/script/api/qscriptvalue_p.h b/src/script/api/qscriptvalue_p.h
index f0c13a4..bbd54fa 100644
--- a/src/script/api/qscriptvalue_p.h
+++ b/src/script/api/qscriptvalue_p.h
@@ -107,6 +107,12 @@ public:
QScriptValue property(const QString &name, int resolveMode) const;
QScriptValue property(quint32 index, int resolveMode) const;
+ QScriptValue toPublic() {
+ QScriptValue tmp;
+ tmp.d_ptr = this;
+ return tmp;
+ };
+
bool isValid() const {return valid;}
void detachEngine()
{
@@ -123,9 +129,12 @@ public:
QString *stringValue;
QBasicAtomicInt ref;
- bool valid;
+ bool valid; //object is valid ?
+
+ qint64 id; //object unique id number
};
+
QT_END_NAMESPACE
#endif // QT_NO_SCRIPT