From a820688aeb02d7a9fa1f7b0af1d0c96058da4e4f Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Sat, 30 May 2015 15:32:15 +0200 Subject: Printing: Add progress updating ability to print dialog The progress bar shows the progress of both the rendering part and the templating part, unfortunately we can't check the progress of Grantlee templating engine so the progess bar doesn't have a constant pace it stops a little around 20%. Signed-off-by: Gehad elrobey Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- qt-ui/printdialog.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui') diff --git a/qt-ui/printdialog.cpp b/qt-ui/printdialog.cpp index ae119cc3d..909b0b598 100644 --- a/qt-ui/printdialog.cpp +++ b/qt-ui/printdialog.cpp @@ -96,6 +96,7 @@ void PrintDialog::printClicked(void) if (printDialog.exec() == QDialog::Accepted) { switch (printOptions.type) { case print_options::DIVELIST: + connect(printer, SIGNAL(progessUpdated(int)), progressBar, SLOT(setValue(int))); printer->print(); break; case print_options::TABLE: -- cgit v1.2.3-70-g09d2