21 #include "scriptabletemplate.h"
28 : QObject(parent), m_template(t)
34 return m_template->
render(c->context());
37 QList<QObject *> ScriptableTemplate::nodeList()
const
39 auto nodeList = m_template->nodeList();
40 QList<QObject *> objList;
42 for (
auto n : nodeList) {
48 void ScriptableTemplate::setNodeList(
const QList<QObject *> &list)
52 for (
auto obj : list) {
53 auto n = qobject_cast<Node *>(obj);
58 m_template->setNodeList(nodeList);
A list of Nodes with some convenience API for rendering them.
The Template class is a tree of nodes which may be rendered.
QString render(Context *c) const