Printing: print all dives if 'print selected' is unchecked

User can choose either to print all dives or print selected dives only.

Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Gehad elrobey 2015-06-21 06:13:22 +02:00 committed by Lubomir I. Ivanov
parent bc0b443afd
commit 1faa198020
3 changed files with 16 additions and 8 deletions

View file

@ -56,7 +56,7 @@ void Printer::render()
divesPerPage = 2;
break;
}
int Pages = ceil(getTotalWork() / (float)divesPerPage);
int Pages = ceil(getTotalWork(printOptions) / (float)divesPerPage);
// get all refereces to diveprofile class in the Html template
QWebElementCollection collection = webView->page()->mainFrame()->findAllElements(".diveprofile");