@ -7,17 +7,9 @@ int main(int argc, char **argv)
QApplication app ( argc , argv ) ;
QApplication app ( argc , argv ) ;
DynamicTreeModel rootModel ;
DynamicTreeModel rootModel ;
{
{ % if initEvent % } { % with initEvent as event % }
% if initEvent %
} {
% with initEvent as event %
}
// Include {{ "init.cpp" }}: {% include "init.cpp" %}
// Include {{ "init.cpp" }}: {% include "init.cpp" %}
{
{ % endwith % } { % endif % }
% endwith %
} {
% endif %
}
// Create and connect the proxy model here.
// Create and connect the proxy model here.
// eg:
// eg:
@ -27,17 +19,10 @@ int main(int argc, char **argv)
// proxy.setSourceModel(&rootModel);
// proxy.setSourceModel(&rootModel);
// Have {{ events|length }} Events.
// Have {{ events|length }} Events.
{
{ % for event in events % } { % with event . type | lower | stringformat : " %1.cpp " as eventtemplate % }
% for event in events %
} {
% with event . type | lower | stringformat : " %1.cpp " as eventtemplate %
}
// Include {{ eventtemplate }}: {% include eventtemplate %}
// Include {{ eventtemplate }}: {% include eventtemplate %}
{
{ % endwith % } { % endfor % }
% endwith %
} {
% endfor %
}
return app . exec ( ) ;
return app . exec ( ) ;
}
}