mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
9dc45af915
commit
eb4312c9ba
2 changed files with 60 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue