summaryrefslogtreecommitdiffstats
path: root/templatelayout.h
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-06-14 06:25:35 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-06-19 21:41:57 +0300
commit60c5e3cf25e0966fa7ec5f90d5e04404e7fae81f (patch)
tree88f6098cf5c402094d973a8cb16eb36ea232f4c6 /templatelayout.h
parent42b9d0d047abfa9b7816f59d00a0ed0f87368975 (diff)
downloadsubsurface-60c5e3cf25e0966fa7ec5f90d5e04404e7fae81f.tar.gz
Printing: pass the print_options struct to TemplateLayout and Printer
As the print_options struct is needed by both TemplateLayout and Printer class, it can be passed to their 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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/templatelayout.h b/templatelayout.h
index d8ada1c86..21eae1b80 100644
--- a/templatelayout.h
+++ b/templatelayout.h
@@ -3,18 +3,20 @@
#include <grantlee_templates.h>
#include "mainwindow.h"
+#include "printoptions.h"
int getTotalWork();
class TemplateLayout : public QObject {
Q_OBJECT
public:
- TemplateLayout();
+ TemplateLayout(print_options *PrintOptions);
~TemplateLayout();
QString generate();
private:
Grantlee::Engine *m_engine;
+ print_options *PrintOptions;
signals:
void progressUpdated(int value);