mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
a820688aeb
The progress bar shows the progress of both the rendering part and the templating part, unfortunately we can't check the progress of Grantlee templating engine so the progess bar doesn't have a constant pace it stops a little around 20%. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
27 lines
374 B
C++
27 lines
374 B
C++
#ifndef PRINTER_H
|
|
#define PRINTER_H
|
|
|
|
#include <QPrinter>
|
|
#include <QWebView>
|
|
|
|
class Printer : public QObject {
|
|
Q_OBJECT
|
|
|
|
private:
|
|
QPrinter *printer;
|
|
QWebView *webView;
|
|
void render();
|
|
int done;
|
|
|
|
private slots:
|
|
void templateProgessUpdated(int value);
|
|
|
|
public:
|
|
Printer(QPrinter *printer);
|
|
void print();
|
|
|
|
signals:
|
|
void progessUpdated(int value);
|
|
};
|
|
|
|
#endif //PRINTER_H
|