Print: add a print preview for testing purposes

Use a QPrintPreviewDialog, while the print logic is WIP.
This way Qt will show the print output in a window instead
of exporting to a file and opending it manualy.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Lubomir I. Ivanov 2013-07-10 19:27:10 +03:00
parent 20804b16d3
commit 9dc45af915
2 changed files with 12 additions and 4 deletions

View file

@ -24,6 +24,7 @@ private:
private slots:
void printClicked();
void onPaintRequested(QPrinter *);
};
#endif