mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
PrintLayout: add estimateTotalDives()
estimateTotalDives() is used to calculate the total dives to be printed, it requires a 'struct dive' pointer and a couple of 'int' pointers for the iterator 'i' and 'total' return. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
ecf483db46
commit
08cf1be212
2 changed files with 15 additions and 0 deletions
|
@ -34,11 +34,15 @@ private:
|
|||
QList<unsigned int> profilePrintColumnWidths, profilePrintRowHeights;
|
||||
|
||||
void setup();
|
||||
void estimateTotalDives(struct dive *dive, int *i, int *total) const;
|
||||
void printProfileDives(int divesPerRow, int divesPerColumn);
|
||||
QTableView *createProfileTable(ProfilePrintModel *model, const int tableW);
|
||||
void printTable();
|
||||
void addTablePrintDataRow(TablePrintModel *model, int row, struct dive *dive) const;
|
||||
void addTablePrintHeadingRow(TablePrintModel *model, int row) const;
|
||||
|
||||
signals:
|
||||
void signalProgress(int);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue