blob: b28d6b7f5ed1cb0ca6ea88635a5d62bc824e0d9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import QtQml 2.2
import QtQml.Models 2.2
import "."
{{interface.comment}}
QtObject {
id: root
{% for property in interface.properties %}
{{property.comment}}
{%+ if property.is_readonly %}readonly {% endif %}property {{property|propertyType}} {{property}} : {{property|defaultValue}}
{% endfor %}
{% for operation in interface.operations %}
{{operation.comment}}
property var {{operation}} : function({{operation.parameters|join(', ')}}) {}
{% endfor %}
{% for signal in interface.signals %}
signal {{signal}}(
{%- for parameter in signal.parameters %}
{{- parameter.type|propertyType }} {{ parameter.name -}}
{% if not loop.last %}, {% endif %}
{% endfor -%}
)
{% endfor %}
}
|