diff options
author | Marco Bubke <marco.bubke@nokia.com> | 2010-06-10 17:36:14 +0200 |
---|---|---|
committer | Marco Bubke <marco.bubke@nokia.com> | 2010-06-10 17:41:22 +0200 |
commit | 35263628d13a3b02fd48eb3fe4077211bab938d9 (patch) | |
tree | d07466daf0c33a20a216ac9c7b495cd72dc1f286 /src/plugins/qmldesigner/designercore/include/forwardview.h | |
parent | 24f07b7a72a0f07068a63b6b576cce51609dfc7f (diff) |
Add script function to the model
This is needed to suppert inline script function of Qml in the designer
Diffstat (limited to 'src/plugins/qmldesigner/designercore/include/forwardview.h')
-rw-r--r-- | src/plugins/qmldesigner/designercore/include/forwardview.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/designercore/include/forwardview.h b/src/plugins/qmldesigner/designercore/include/forwardview.h index 7edeae303c..a08dcda19c 100644 --- a/src/plugins/qmldesigner/designercore/include/forwardview.h +++ b/src/plugins/qmldesigner/designercore/include/forwardview.h @@ -76,6 +76,7 @@ public: void auxiliaryDataChanged(const ModelNode &node, const QString &name, const QVariant &data); + void scriptFunctionsChanged(const ModelNode &node, const QStringList &scriptFunctionList); protected: void appendView(ViewType *view); @@ -246,6 +247,13 @@ void ForwardView<ViewType>::auxiliaryDataChanged(const ModelNode &node, const QS } template <class ViewType> + void ForwardView<ViewType>::scriptFunctionsChanged(const ModelNode &node, const QStringList &scriptFunctionList) +{ + foreach (const ViewTypePointer &view, m_targetViewList) + view->scriptFunctionsChanged(node, scriptFunctionList); +} + +template <class ViewType> void ForwardView<ViewType>::appendView(ViewType *view) { m_targetViewList.append(view); |