summaryrefslogtreecommitdiffstats
path: root/templatelayout.cpp
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-07-04 23:02:17 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-07-05 21:02:09 +0300
commitc35092f5c9ce30f2b8df4c554302a3e7c8716a07 (patch)
tree646f59ba8b5cfab672354fdd4ff0c7fdce659ca0 /templatelayout.cpp
parent815072d2ae29811271af197e2330cc331d58f9c6 (diff)
downloadsubsurface-c35092f5c9ce30f2b8df4c554302a3e7c8716a07.tar.gz
Printing: add custom options to the PrintDialog
Add: -custom.html template -custom template to print_options struct -options to the options dialog Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'templatelayout.cpp')
-rw-r--r--templatelayout.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/templatelayout.cpp b/templatelayout.cpp
index 2a5bb8ff7..fcdd22902 100644
--- a/templatelayout.cpp
+++ b/templatelayout.cpp
@@ -71,6 +71,8 @@ QString TemplateLayout::generate()
templateName = "one_dive.html";
} else if (PrintOptions->p_template == print_options::TWO_DIVE) {
templateName = "two_dives.html";
+ } else if (PrintOptions->p_template == print_options::CUSTOM) {
+ templateName = "custom.html";
}
Grantlee::Template t = m_engine->loadByName(templateName);
if (!t || t->error()) {