summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-07-02 09:49:25 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-07-02 09:49:25 (GMT)
commit481211251438441aee79b8bc6178e7157eba7f61 (patch)
tree744e0896c7995ae2d3fd81a9cd2f796b4d6f6841
parent0869219f0f58ad93149e416016b0b880d79bae47 (diff)
downloadQt-481211251438441aee79b8bc6178e7157eba7f61.zip
Qt-481211251438441aee79b8bc6178e7157eba7f61.tar.gz
Qt-481211251438441aee79b8bc6178e7157eba7f61.tar.bz2
use the JSC::Getter and JSC::Setter flags
-rw-r--r--src/script/api/qscriptvalue.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/script/api/qscriptvalue.cpp b/src/script/api/qscriptvalue.cpp
index caa8730..6ff44a0 100644
--- a/src/script/api/qscriptvalue.cpp
+++ b/src/script/api/qscriptvalue.cpp
@@ -1791,11 +1791,9 @@ QScriptValue::PropertyFlags QScriptValue::propertyFlags(const QString &name,
result |= QScriptValue::SkipInEnumeration;
if (attribs & JSC::DontDelete)
result |= QScriptValue::Undeletable;
-
- // ### faster/better way?
- if (QScript::isFunction(JSC::asObject(d->jscValue)->lookupGetter(exec, id)))
+ if (attribs & JSC::Getter)
result |= QScriptValue::PropertyGetter;
- if (QScript::isFunction(JSC::asObject(d->jscValue)->lookupSetter(exec, id)))
+ if (attribs & JSC::Setter)
result |= QScriptValue::PropertySetter;
result |= QScriptValue::PropertyFlag(attribs & QScriptValue::UserRange);