aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlengine_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-05-14 02:01:04 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-05-17 23:59:03 +0200
commitbd7fb994da9dbb9340f6485376f0f187488a05a4 (patch)
treec9f92ae7aaf346a8def41e1ff581f20e317eac08 /src/qml/qml/qqmlengine_p.h
parent093c9c94189018381a0e155b0fa421cc73dbb704 (diff)
convert QV8VariantWrapper to v4
Implement variant support through a QV4::VariantObject class. Port scarce resource support for the pixmap and image variants. Change-Id: Ib6aac8debc7f57224ccddb912ab4342c5f1dec15 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlengine_p.h')
-rw-r--r--src/qml/qml/qqmlengine_p.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/qml/qml/qqmlengine_p.h b/src/qml/qml/qqmlengine_p.h
index b5af0bb7cd..091c08e624 100644
--- a/src/qml/qml/qqmlengine_p.h
+++ b/src/qml/qml/qqmlengine_p.h
@@ -173,19 +173,6 @@ public:
QHash<QString,QSharedPointer<QQmlImageProviderBase> > imageProviders;
- // Scarce resources are "exceptionally high cost" QVariant types where allowing the
- // normal JavaScript GC to clean them up is likely to lead to out-of-memory or other
- // out-of-resource situations. When such a resource is passed into JavaScript we
- // add it to the scarceResources list and it is destroyed when we return from the
- // JavaScript execution that created it. The user can prevent this behavior by
- // calling preserve() on the object which removes it from this scarceResource list.
- class ScarceResourceData {
- public:
- ScarceResourceData(const QVariant &data) : data(data) {}
- QVariant data;
- QIntrusiveListNode node;
- };
- QIntrusiveList<ScarceResourceData, &ScarceResourceData::node> scarceResources;
int scarceResourcesRefCount;
void referenceScarceResources();
void dereferenceScarceResources();