mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Printing: add support for printing on any page size
Make page size and orientation customizable. The user can select any page size and orientation and then the rendering resolution will be calculated based on the selected preferences and the printer DPI. The HTML templates must be responsive, also the font-size must be based on the viewport width so that we don't lose quality. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
75263e3d2c
commit
554e64c43f
2 changed files with 13 additions and 17 deletions
|
|
@ -16,9 +16,11 @@ private:
|
|||
QPrinter *printer;
|
||||
QWebView *webView;
|
||||
print_options *printOptions;
|
||||
QSize pageSize;
|
||||
int done;
|
||||
int dpi;
|
||||
void render();
|
||||
void putProfileImage(QRect box, QRect viewPort, QPainter *painter, struct dive *dive, QPointer<ProfileWidget2> profile);
|
||||
int done;
|
||||
|
||||
private slots:
|
||||
void templateProgessUpdated(int value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue