summaryrefslogtreecommitdiffstats
path: root/qt-ui/printlayout.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-07-10 19:32:15 +0300
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-07-10 19:32:15 +0300
commiteb4312c9bafcd30063a113608a7da96f5733d43b (patch)
tree52d87e9f6a9751a21a0b53bc9cceffa7bbea2a0d /qt-ui/printlayout.h
parent9dc45af915f2c8bc93703cbcc79ade1d3261e297 (diff)
downloadsubsurface-eb4312c9bafcd30063a113608a7da96f5733d43b.tar.gz
Print: initial implementation of the table print
PrintLayout for now only handles the table print, while the data output itself is work in progress. For now there is a simple HTML/CSS table logic based on QTextDocument. There is an iterative algorithm which listens for a page increase and adds a heading on top of the new page. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/printlayout.h')
-rw-r--r--qt-ui/printlayout.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/printlayout.h b/qt-ui/printlayout.h
index 120f50d61..9328030f4 100644
--- a/qt-ui/printlayout.h
+++ b/qt-ui/printlayout.h
@@ -19,7 +19,7 @@ private:
QPrinter *printer;
struct options *printOptions;
- QPainter painter;
+ QPainter *painter;
int screenDpiX, screenDpiY, printerDpi;
qreal scaleX, scaleY;
QRect pageRect;
@@ -28,6 +28,8 @@ private:
void printSixDives();
void printTwoDives();
void printTable();
+ QString insertTableHeadingRow();
+ QString insertTableDataRow();
};
#endif