Commit f5dadb67 authored by Wouter's avatar Wouter

Add array template

Used to name array types
parent a0136831
......@@ -131,6 +131,7 @@ Config::Config(QObject* parent): QObject(parent)
// From default templates
m_headerDependencies.insert("class", "QObject");
m_headerDependencies.insert("class", "QVariantMap");
m_headerDependencies.insert("array", "QList");
m_headerDependencies.insert("wrapper", "AbstractWrapper");
m_headerDependencies.insert("wrapper", "QVariant");
m_headerDependencies.insert("union", "QVariant");
......
{% extends "implementation.template" %}
{% block definition %}
{% if class.itemType.type.isAnonymous %}
{% with class.itemType.type as type %}
// -----------------------------------------------------------------------------
// {{ class.itemType.type.fullName }}
// -----------------------------------------------------------------------------
{% include "typedefinition.inc" %}
{% endwith %}
{% endif %}
{% endblock %}
{% if class.itemType.type.isAnonymous %}{# Use inheritance to define subclass #}
/**
* Item class
*/{% with class.itemType.type as type %}{% include "typedeclaration.inc" %}{% endwith %}
{% endif %}
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