diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-07-02 22:26:31 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-07-05 21:00:40 +0300 |
commit | bc80fc8849a01ac156c5e54ba8ef3fe04e1aaee3 (patch) | |
tree | d235d43cf54d5c30653147f2d1d9baec55bacf27 /printer.h | |
parent | 71561e720dbfd85b3cb724dd1eb509b0d230d5db (diff) | |
download | subsurface-bc80fc8849a01ac156c5e54ba8ef3fe04e1aaee3.tar.gz |
Printing: pass the template_options struct to TemplateLayout
The template_options struct needs to be passed to TemplateLayout
constructor.
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'printer.h')
-rw-r--r-- | printer.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -8,6 +8,7 @@ #include "profile/profilewidget2.h" #include "printoptions.h" +#include "templateedit.h" class Printer : public QObject { Q_OBJECT @@ -16,6 +17,7 @@ private: QPrinter *printer; QWebView *webView; print_options *printOptions; + template_options *templateOptions; QSize pageSize; int done; int dpi; @@ -26,7 +28,7 @@ private slots: void templateProgessUpdated(int value); public: - Printer(QPrinter *printer, print_options *printOptions); + Printer(QPrinter *printer, print_options *printOptions, template_options *templateOptions); void print(); signals: |