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 /templatelayout.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 'templatelayout.h')
-rw-r--r-- | templatelayout.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templatelayout.h b/templatelayout.h index 4637a7962..a894ce4ca 100644 --- a/templatelayout.h +++ b/templatelayout.h @@ -4,19 +4,21 @@ #include <grantlee_templates.h> #include "mainwindow.h" #include "printoptions.h" +#include "templateedit.h" int getTotalWork(print_options *printOptions); class TemplateLayout : public QObject { Q_OBJECT public: - TemplateLayout(print_options *PrintOptions); + TemplateLayout(print_options *PrintOptions, template_options *templateOptions); ~TemplateLayout(); QString generate(); private: Grantlee::Engine *m_engine; print_options *PrintOptions; + template_options *templateOptions; signals: void progressUpdated(int value); @@ -75,6 +77,7 @@ public: }; Q_DECLARE_METATYPE(Dive) +Q_DECLARE_METATYPE(template_options) GRANTLEE_BEGIN_LOOKUP(Dive) if (property == "number") |