diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-04-21 18:05:20 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-04 10:07:35 -0700 |
commit | 6de5cfb7a400897e6644668ffa9d0d4926b74590 (patch) | |
tree | b11159f2375dc2d91e44e38863b7aa28a31885a5 /subsurface.pro | |
parent | e2ad38189eb81eda213f775302efb44d2ed70c85 (diff) | |
download | subsurface-6de5cfb7a400897e6644668ffa9d0d4926b74590.tar.gz |
Printing: Add Printer class that holds the rendering logic.
Render Html pages into a QWebView then print it using QPainter. the
Printer::print() is called that prepare the HTML file to be rendered by
the QWebView.
Printer::render() will do the rendering task.
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>
Diffstat (limited to 'subsurface.pro')
-rw-r--r-- | subsurface.pro | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/subsurface.pro b/subsurface.pro index 509feb7bc..fd4665cb3 100644 --- a/subsurface.pro +++ b/subsurface.pro @@ -68,6 +68,7 @@ HEADERS = \ units.h \ divecomputer.h \ templatelayout.h \ + printer.h \ qt-ui/about.h \ qt-ui/completionmodels.h \ qt-ui/divecomputermanagementdialog.h \ @@ -162,6 +163,7 @@ SOURCES = \ gaspressures.c \ divecomputer.cpp \ templatelayout.cpp \ + printer.cpp \ worldmap-save.c \ save-html.c \ qt-gui.cpp \ |