mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
815072d2ae
commit
c35092f5c9
5 changed files with 65 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue