diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-06-26 10:41:17 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-06-26 10:42:49 (GMT) |
commit | e1a0c7c01d494f7db194e3b5245368ba1d95c6c8 (patch) | |
tree | b670c3798de12ef88adcdf6fe1d2e212eaec3b18 /src/script | |
parent | a5188742e4666f5181f85745677abfbf9e658076 (diff) | |
download | Qt-e1a0c7c01d494f7db194e3b5245368ba1d95c6c8.zip Qt-e1a0c7c01d494f7db194e3b5245368ba1d95c6c8.tar.gz Qt-e1a0c7c01d494f7db194e3b5245368ba1d95c6c8.tar.bz2 |
qtscript meta-object binding: enum properties are not deletable
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/qscriptextqobject.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/qscriptextqobject.cpp b/src/script/qscriptextqobject.cpp index a3cb4e6..88fd007 100644 --- a/src/script/qscriptextqobject.cpp +++ b/src/script/qscriptextqobject.cpp @@ -2053,12 +2053,12 @@ bool ExtQMetaObjectData::resolve(const QScriptValueImpl &object, for (int i = 0; i < meta->enumeratorCount(); ++i) { QMetaEnum e = meta->enumerator(i); - for (int j = 0; j < e.keyCount(); ++j) { const char *key = e.key(j); - if (! qstrcmp (key, name.constData())) { - member->native(nameId, e.value(j), QScriptValue::ReadOnly); + member->native(nameId, e.value(j), + QScriptValue::ReadOnly + | QScriptValue::Undeletable); *base = object; return true; } |