Printing: move template_options to print_options.h

Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Gehad elrobey 2015-07-05 07:26:39 +02:00 committed by Lubomir I. Ivanov
parent a70cea95e8
commit c44496e23d
5 changed files with 13 additions and 11 deletions

View file

@ -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);