Printing: use the same code for both statistics and divelist print

- use the same generic code for both types of templates
- check for the printing type before generating the template
- remove unused printStatistics() method

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
This commit is contained in:
Gehad elrobey 2015-08-21 19:12:33 +02:00 committed by Lubomir I. Ivanov
parent 4553155cf3
commit 69f2921ffa
3 changed files with 13 additions and 74 deletions

View file

@ -39,7 +39,6 @@ public:
Printer(QPaintDevice *paintDevice, print_options *printOptions, template_options *templateOptions, PrintMode printMode);
~Printer();
void print();
void print_statistics();
void previewOnePage();
signals: