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