diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-06-29 03:24:29 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-07-05 21:00:28 +0300 |
commit | 71561e720dbfd85b3cb724dd1eb509b0d230d5db (patch) | |
tree | d7fedba86fd42877b766d8a4e719804a5e516676 /qt-ui/templateedit.h | |
parent | a600ea5201f55a3182cb24a0553d02aefad2c51b (diff) | |
download | subsurface-71561e720dbfd85b3cb724dd1eb509b0d230d5db.tar.gz |
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>
Diffstat (limited to 'qt-ui/templateedit.h')
-rw-r--r-- | qt-ui/templateedit.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qt-ui/templateedit.h b/qt-ui/templateedit.h index 2790c619b..73a5e9fbb 100644 --- a/qt-ui/templateedit.h +++ b/qt-ui/templateedit.h @@ -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; |