1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "templateedit.h" #include "ui_templateedit.h" TemplateEdit::TemplateEdit(QWidget *parent, struct template_options *templateOptions) : QDialog(parent), ui(new Ui::TemplateEdit) { ui->setupUi(this); this->templateOptions = templateOptions; } TemplateEdit::~TemplateEdit() { delete ui; }