aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/v8/qjsconverter_impl_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-04-17 18:17:30 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-04-18 12:43:30 +0200
commit94eee5842aa5a4d4fd43ffe7a4b5613548ef2bb9 (patch)
tree39e58a786ffa97e9f85054a4fffb87c35b063ad5 /src/qml/qml/v8/qjsconverter_impl_p.h
parent67b09aef34ff7997808e04194cdb92273ec76f14 (diff)
Cleanup lots of V8 dependencies in QJS* classes
Implement a good part of QJSValue using V4. Keep the QV8Engine for now (as it is used everywhere), but add an ExecutionEngine pointer to it so other parts can more easily be ported to V4. Remove a lot of other stuff that's not required anymore. Change-Id: Ibe2c9ab10f0ee977e0e3d05a42f526206d7b22b5 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/v8/qjsconverter_impl_p.h')
-rw-r--r--src/qml/qml/v8/qjsconverter_impl_p.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/qml/qml/v8/qjsconverter_impl_p.h b/src/qml/qml/v8/qjsconverter_impl_p.h
index 4b17d5ed31..165373c421 100644
--- a/src/qml/qml/v8/qjsconverter_impl_p.h
+++ b/src/qml/qml/v8/qjsconverter_impl_p.h
@@ -147,23 +147,6 @@ QString QJSConverter::toString(double value)
return QString::fromLatin1(buf.constData());
}
-// return a mask of v8::PropertyAttribute that may also contains QScriptValue::PropertyGetter or QScriptValue::PropertySetter
-uint QJSConverter::toPropertyAttributes(const QFlags<QJSValuePrivate::PropertyFlag>& flags)
-{
- uint attr = 0;
- if (flags.testFlag(QJSValuePrivate::ReadOnly))
- attr |= v8::ReadOnly;
- if (flags.testFlag(QJSValuePrivate::Undeletable))
- attr |= v8::DontDelete;
- if (flags.testFlag(QJSValuePrivate::SkipInEnumeration))
- attr |= v8::DontEnum;
- // if (flags.testFlag(QScriptValue::PropertyGetter))
- // attr |= QScriptValue::PropertyGetter;
- // if (flags.testFlag(QScriptValue::PropertySetter))
- // attr |= QScriptValue::PropertySetter;
- return attr;
-}
-
// Converts a JS RegExp to a QRegExp.
// The conversion is not 100% exact since ECMA regexp and QRegExp
// have different semantics/flags, but we try to do our best.