File indexing completed on 2024-04-28 03:56:05
0001 0002 #include <QApplication> 0003 #include <dynamictreemodel.h> 0004 0005 int main(int argc, char **argv) 0006 { 0007 QApplication app(argc, argv); 0008 0009 DynamicTreeModel rootModel; 0010 { 0011 % if initEvent % 0012 } 0013 { % with initEvent as event % } // Include {{ "init.cpp" }}: {% include "init.cpp" %} 0014 { % endwith % } { % endif % } 0015 0016 // Create and connect the proxy model here. 0017 // eg: 0018 0019 // QSortFilterProxyModel proxy; 0020 // proxy.setDynamicSortFilter(true); 0021 // proxy.setSourceModel(&rootModel); 0022 0023 // Have {{ events|length }} Events. 0024 {% for event in events % 0025 } 0026 { % with event.type | lower | stringformat : "%1.cpp" as eventtemplate % } // Include {{ eventtemplate }}: {% include eventtemplate %} 0027 { % endwith % } { 0028 % endfor % 0029 } 0030 0031 return app.exec(); 0032 }