Printing: refactoring printer class

- Render specific number of pages only.
- Move printer related code to print().

Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Gehad elrobey 2015-07-10 16:20:14 +02:00 committed by Lubomir I. Ivanov
parent 51e36fa158
commit 4e1a5d954b
2 changed files with 20 additions and 21 deletions

View file

@ -21,7 +21,7 @@ private:
QSize pageSize;
int done;
int dpi;
void render();
void render(int Pages);
void putProfileImage(QRect box, QRect viewPort, QPainter *painter, struct dive *dive, QPointer<ProfileWidget2> profile);
private slots: