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