mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
42b9d0d047
commit
60c5e3cf25
5 changed files with 12 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue