diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-06-10 13:39:15 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-06-19 21:41:56 +0300 |
commit | 1040f0d4e57ca8ec13f9eb8e0b2214c89b90aaaf (patch) | |
tree | 08a6dd3232bbd7bb7c41770e18c2b2caf5888405 /templatelayout.h | |
parent | c1523147905345ed5f979b374f766ce42bc9be9b (diff) | |
download | subsurface-1040f0d4e57ca8ec13f9eb8e0b2214c89b90aaaf.tar.gz |
Printing: fix rendering bug for odd number of dives
Odd number of dives needs extra space from the buttom, so that when we
scroll to the last page extra whitespace is shown under the last dive
frame, this is fixed by adding a default footer to the base template.
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'templatelayout.h')
-rw-r--r-- | templatelayout.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templatelayout.h b/templatelayout.h index db2fb30d3..d8ada1c86 100644 --- a/templatelayout.h +++ b/templatelayout.h @@ -4,6 +4,8 @@ #include <grantlee_templates.h> #include "mainwindow.h" +int getTotalWork(); + class TemplateLayout : public QObject { Q_OBJECT public: @@ -13,7 +15,6 @@ public: private: Grantlee::Engine *m_engine; - int getTotalWork(); signals: void progressUpdated(int value); |