QQmlEngine inherits from QJSEngine, which has a collectGarbage()
function that does exactly the same.
Also remove doc references to non-existing function
reportAdditionalMemoryCost().
Change-Id: Iff12d2cf940f3afcd88967eb9a841c2f6082ca37
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
}
/*!
- Attempt to free unused memory.
-*/
-void QQmlEngine::collectGarbage()
-{
- QV8Engine::gc();
-}
-
-/*!
Returns the QQmlContext for the \a object, or 0 if no
context has been set.
bool outputWarningsToStandardError() const;
void setOutputWarningsToStandardError(bool);
- void collectGarbage();
-
static QQmlContext *contextForObject(const QObject *);
static void setContextForObject(QObject *, QQmlContext *);
when the QJSEngine decides that it's wise to do so (i.e. when a certain number of new objects
have been created). However, you can call this function to explicitly request that garbage
collection should be performed as soon as possible.
-
- \sa reportAdditionalMemoryCost()
*/
void QJSEngine::collectGarbage()
{
wrapper object (either by script code or C++) will result in a
script exception.
- \sa QJSValue::toQObject(), reportAdditionalMemoryCost()
+ \sa QJSValue::toQObject()
*/
QJSValue QJSEngine::newQObject(QObject *object)
{