diff --git a/scriptengines/javascript/simplebindings/anchorlayout.cpp b/scriptengines/javascript/simplebindings/anchorlayout.cpp index b05872deb..8156ca869 100644 --- a/scriptengines/javascript/simplebindings/anchorlayout.cpp +++ b/scriptengines/javascript/simplebindings/anchorlayout.cpp @@ -105,10 +105,16 @@ BEGIN_DECLARE_METHOD(QGraphicsAnchorLayout, addAnchors) { return eng->undefinedValue(); } END_DECLARE_METHOD -BEGIN_DECLARE_METHOD(QGraphicsItem, toString) { +BEGIN_DECLARE_METHOD(QGraphicsAnchorLayout, toString) { return QScriptValue(eng, "QGraphicsAnchorLayout"); } END_DECLARE_METHOD +BEGIN_DECLARE_METHOD(QGraphicsAnchorLayout, activate) { + self->activate(); + return eng->undefinedValue(); +} END_DECLARE_METHOD + +///////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////// class PrototypeAnchorLayout : public QGraphicsAnchorLayout @@ -139,6 +145,7 @@ QScriptValue constructAnchorLayoutClass(QScriptEngine *eng) ADD_METHOD(proto, addAnchors); ADD_METHOD(proto, addCornerAnchors); ADD_METHOD(proto, toString); + ADD_METHOD(proto, activate); QScript::registerPointerMetaType(eng, proto); diff --git a/scriptengines/javascript/simplebindings/gridlayout.cpp b/scriptengines/javascript/simplebindings/gridlayout.cpp index 2c681cdf3..9495f9d3f 100644 --- a/scriptengines/javascript/simplebindings/gridlayout.cpp +++ b/scriptengines/javascript/simplebindings/gridlayout.cpp @@ -118,10 +118,15 @@ BEGIN_DECLARE_METHOD(QGraphicsGridLayout, addItem) { return eng->undefinedValue(); } END_DECLARE_METHOD -BEGIN_DECLARE_METHOD(QGraphicsItem, toString) { +BEGIN_DECLARE_METHOD(QGraphicsGridLayout, toString) { return QScriptValue(eng, "QGraphicsGridLayout"); } END_DECLARE_METHOD +BEGIN_DECLARE_METHOD(QGraphicsGridLayout, activate) { + self->activate(); + return eng->undefinedValue(); +} END_DECLARE_METHOD + ///////////////////////////////////////////////////////////// class PrototypeGridLayout : public QGraphicsGridLayout @@ -168,6 +173,7 @@ QScriptValue constructGridLayoutClass(QScriptEngine *eng) ADD_METHOD(proto, setContentsMargins); ADD_METHOD(proto, addItem); ADD_METHOD(proto, toString); + ADD_METHOD(proto, activate); QScript::registerPointerMetaType(eng, proto); diff --git a/scriptengines/javascript/simplebindings/linearlayout.cpp b/scriptengines/javascript/simplebindings/linearlayout.cpp index 2ea32b5fc..95b6295b4 100644 --- a/scriptengines/javascript/simplebindings/linearlayout.cpp +++ b/scriptengines/javascript/simplebindings/linearlayout.cpp @@ -200,6 +200,11 @@ BEGIN_DECLARE_METHOD(QGraphicsLinearLayout, spacing) { return QScriptValue(eng, self->spacing()); } END_DECLARE_METHOD +BEGIN_DECLARE_METHOD(QGraphicsLinearLayout, activate) { + self->activate(); + return eng->undefinedValue(); +} END_DECLARE_METHOD + ///////////////////////////////////////////////////////////// QScriptValue constructLinearLayoutClass(QScriptEngine *eng) @@ -228,6 +233,7 @@ QScriptValue constructLinearLayoutClass(QScriptEngine *eng) ADD_METHOD(proto, removeItem); ADD_METHOD(proto, insertItem); ADD_METHOD(proto, toString); + ADD_METHOD(proto, activate); QScript::registerPointerMetaType(eng, proto);