blob: 4ed383bec3a6cffead3616bba5076c2a5ea79614 (
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
|
{# Copyright (c) Pelagicore AB 2016 #}
{% set module_name = 'Qml{0}Module'.format(module.module_name()) %}
/****************************************************************************
** This is an auto-generated file.
** Do not edit! All changes made to it will be lost.
****************************************************************************/
#include "plugin.h"
#include <qqml.h>
#include "{{module_name|lower}}.h"
{% for interface in module.interfaces %}
#include "{{interface|lower}}.h"
{% endfor %}
void Plugin::registerTypes(const char *uri)
{
{{module_name}}::registerTypes();
// @uri {{module|lower}}
{{module_name}}::registerQmlTypes(uri, 1, 0);
{% for interface in module.interfaces %}
Qml{{interface}}::registerQmlTypes(uri, 1, 0);
{% endfor %}
}
|