Changeset View
Changeset View
Standalone View
Standalone View
file_templates/classes/qdialog/class.cpp
- This file was added.
1 | {% extends "cpp_qobject_implementation.cpp" %} | ||||
---|---|---|---|---|---|
2 | | ||||
3 | | ||||
4 | {% block includes %} | ||||
5 | {{ block.super }} | ||||
6 | #include "ui_{{ output_file_ui|cut:".ui" }}.h" | ||||
7 | {% endblock includes %} | ||||
8 | | ||||
9 | | ||||
10 | {% block public_constructor_init_list %} | ||||
11 | : m_ui(new Ui::{{ name }}) | ||||
12 | {% endblock public_constructor_init_list %} | ||||
13 | | ||||
14 | | ||||
15 | {% block public_constructor_body %} | ||||
16 | {{ block.super }} | ||||
17 | m_ui->setupUi(this); | ||||
18 | {% endblock public_constructor_body %} | ||||
19 | | ||||
20 | | ||||
21 | {% block protected_constructor_init_list %} | ||||
22 | : m_ui(new Ui::{{ name }}) | ||||
23 | {% endblock protected_constructor_init_list %} | ||||
24 | | ||||
25 | | ||||
26 | {% block protected_constructor_body %} | ||||
27 | {{ block.super }} | ||||
28 | m_ui->setupUi(this); | ||||
29 | {% endblock protected_constructor_body %} |