Printing: add QSettings for TemplateEdit class

TemplateOptions struct must be saved to QSettings after the window
is closed, also it must be recalled when initializing the window.

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-06-29 03:24:29 +02:00 committed by Lubomir I. Ivanov
parent a600ea5201
commit 71561e720d
3 changed files with 51 additions and 1 deletions

View file

@ -21,6 +21,15 @@ class TemplateEdit : public QDialog
public:
explicit TemplateEdit(QWidget *parent, struct template_options *templateOptions);
~TemplateEdit();
private slots:
void on_fontsize_valueChanged(int font_size);
void on_linespacing_valueChanged(double line_spacing);
void on_fontSelection_currentIndexChanged(int index);
void on_colorpalette_currentIndexChanged(int index);
private:
Ui::TemplateEdit *ui;
struct template_options *templateOptions;