summaryrefslogtreecommitdiffstats
path: root/qt-ui/templateedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/templateedit.cpp')
-rw-r--r--qt-ui/templateedit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/templateedit.cpp b/qt-ui/templateedit.cpp
index a4236d036..aecfdc434 100644
--- a/qt-ui/templateedit.cpp
+++ b/qt-ui/templateedit.cpp
@@ -1,12 +1,14 @@
#include "templateedit.h"
+#include "printoptions.h"
#include "ui_templateedit.h"
-TemplateEdit::TemplateEdit(QWidget *parent, struct template_options *templateOptions) :
+TemplateEdit::TemplateEdit(QWidget *parent, struct print_options *printOptions, struct template_options *templateOptions) :
QDialog(parent),
ui(new Ui::TemplateEdit)
{
ui->setupUi(this);
this->templateOptions = templateOptions;
+ this->printOptions = printOptions;
// restore the settings and init the UI
ui->fontSelection->setCurrentIndex(templateOptions->font_index);