~ubuntu-branches/ubuntu/wily/qtdeclarative-opensource-src/wily-proposed

« back to all changes in this revision

Viewing changes to src/qml/qml/qqmlvaluetypewrapper.cpp

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo, Ricardo Salveti de Araujo, Timo Jyrinki
  • Date: 2014-06-19 02:39:21 UTC
  • mfrom: (0.1.18 experimental)
  • Revision ID: package-import@ubuntu.com-20140619023921-yb2oasnuetz9b0fc
Tags: 5.3.0-3ubuntu4
[ Ricardo Salveti de Araujo ]
* debian/control:
  - Updating dependencies as we now also have libqt5quickwidgets5-gles
* libqt5quickwidgets5.symbols: updating to allow gles variant

[ Timo Jyrinki ]
* Update libqt5quickparticles5.symbols from build logs

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
#include <private/qqmlbinding_p.h>
47
47
#include <private/qqmlglobal_p.h>
48
48
#include <private/qqmlcontextwrapper_p.h>
 
49
#include <private/qqmlbuiltinfunctions_p.h>
49
50
 
50
51
#include <private/qv4engine_p.h>
51
52
#include <private/qv4functionobject_p.h>
56
57
 
57
58
using namespace QV4;
58
59
 
59
 
DEFINE_MANAGED_VTABLE(QmlValueTypeWrapper);
 
60
DEFINE_OBJECT_VTABLE(QmlValueTypeWrapper);
60
61
 
61
62
class QmlValueTypeReference : public QmlValueTypeWrapper
62
63
{
79
80
    : Object(QV8Engine::getV4(engine)), objectType(objectType)
80
81
{
81
82
    v8 = engine;
82
 
    setVTable(&static_vtbl);
 
83
    setVTable(staticVTable());
83
84
}
84
85
 
85
86
QmlValueTypeWrapper::~QmlValueTypeWrapper()
380
381
            cacheData.valueTypeCoreIndex = index;
381
382
            cacheData.valueTypePropType = p.userType();
382
383
 
383
 
            QV4::StackFrame frame = v4->currentStackFrame();
 
384
            QV4::Scoped<QQmlBindingFunction> bindingFunction(scope, f);
 
385
            bindingFunction->initBindingLocation();
384
386
 
385
 
            newBinding = new QQmlBinding(value, reference->object, context,
386
 
                                         frame.source, qmlSourceCoordinate(frame.line), qmlSourceCoordinate(frame.column));
 
387
            newBinding = new QQmlBinding(value, reference->object, context);
387
388
            newBinding->setTarget(reference->object, cacheData, context);
388
389
        }
389
390