Changeset View
Changeset View
Standalone View
Standalone View
file_templates/classes/qdialog/class.h
- This file was added.
1 | {% extends "cpp_qobject_header.h" %} | ||||
---|---|---|---|---|---|
2 | | ||||
3 | | ||||
4 | {% block qobject_default_include %} | ||||
5 | #include <QDialog> | ||||
6 | {% endblock qobject_default_include %} | ||||
7 | | ||||
8 | | ||||
9 | {% block includes %} | ||||
10 | {{ block.super }} | ||||
11 | #include <QScopedPointer> | ||||
12 | {% endblock includes %} | ||||
13 | | ||||
14 | | ||||
15 | {% block qobject_baseclass %}QDialog{% endblock qobject_baseclass %} | ||||
16 | | ||||
17 | | ||||
18 | {% block forward_declarations %} | ||||
19 | namespace Ui | ||||
20 | { | ||||
21 | class {{ name }}; | ||||
22 | } | ||||
23 | {% endblock forward_declarations %} | ||||
24 | | ||||
25 | | ||||
26 | {% block class_body %} | ||||
27 | {{ block.super }} | ||||
28 | | ||||
29 | {% if not private_members and not private_functions %} | ||||
30 | | ||||
31 | private: | ||||
32 | {% endif %} | ||||
33 | QScopedPointer<Ui::{{ name }}> m_ui; | ||||
34 | {% endblock class_body %} |