Commit ce23b977 authored by Wouter's avatar Wouter

Fix including moc of classes (in templates)

parent 9242b8e5
......@@ -31,11 +31,8 @@ using namespace {{ class.namespaces|join:"::" }};
{% block definition%}{% with class as type %}{% include "typedefinition.inc" %}{% endwith %}{% endblock %}
{% for dep in class.implementationDependencies %}{% spaceless %}
{% ifequal dep.identifier "QObject" %}
#include "{{ class.baseFilename }}.moc"
{% endifequal %}
{% endspaceless %}
{% endfor %}
{% if class.isQObject %}
#include "moc_{{ class.filename|filename:"basename" }}.cpp"
{% endif %}
{% endfilter %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment