diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-06-17 17:05:14 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-06-19 21:41:58 +0300 |
commit | 554e64c43fc05d9c529a20263ccec46b6b6dc308 (patch) | |
tree | 67355c9bec5c6eb39dc5e4441e998800c94e6b8c /printer.h | |
parent | 75263e3d2cba649d03579ccfe7f31bcfefd67e8c (diff) | |
download | subsurface-554e64c43fc05d9c529a20263ccec46b6b6dc308.tar.gz |
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>
Diffstat (limited to 'printer.h')
-rw-r--r-- | printer.h | 4 |
1 files changed, 3 insertions, 1 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); |