diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-05-30 15:32:15 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-04 10:08:09 -0700 |
commit | a820688aeb02d7a9fa1f7b0af1d0c96058da4e4f (patch) | |
tree | 81b60ef55c616c0ae677b49fb6ab9d5c0053180c /qt-ui | |
parent | 231f90bd268b0b4e930772d295368180d118339d (diff) | |
download | subsurface-a820688aeb02d7a9fa1f7b0af1d0c96058da4e4f.tar.gz |
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 <gehadelrobey@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/printdialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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: |