diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-10 22:55:40 +0300 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-10 22:55:40 +0300 |
commit | 9a99aa4c58ff68b4c83363ce5696c41e14069ff6 (patch) | |
tree | 1f53080f871cbe4b0d267f69a89ed09e3b41557a /qt-ui/printlayout.h | |
parent | eb4312c9bafcd30063a113608a7da96f5733d43b (diff) | |
download | subsurface-9a99aa4c58ff68b4c83363ce5696c41e14069ff6.tar.gz |
Print: use the actual dive table
Currently only for the table print, but now we use the
actual dive table to iterate trough all dives (find only
selected if needed) and print their 'number' element
in table rows.
Also improves the new-page detection algorithm slightly.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/printlayout.h')
-rw-r--r-- | qt-ui/printlayout.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/printlayout.h b/qt-ui/printlayout.h index 9328030f4..0b9bbc146 100644 --- a/qt-ui/printlayout.h +++ b/qt-ui/printlayout.h @@ -6,6 +6,7 @@ #include "../display.h" class PrintDialog; +struct dive; class PrintLayout : public QObject { Q_OBJECT @@ -29,7 +30,7 @@ private: void printTwoDives(); void printTable(); QString insertTableHeadingRow(); - QString insertTableDataRow(); + QString insertTableDataRow(struct dive *dive); }; #endif |