mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Printing: export grayscale filter value to template
Export grayscale value to Grantlee template, So we must declare print_options as QMetatype. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
d2bc70a570
commit
599920c6cf
2 changed files with 13 additions and 0 deletions
|
@ -47,6 +47,7 @@ QString TemplateLayout::generate()
|
|||
|
||||
Grantlee::registerMetaType<Dive>();
|
||||
Grantlee::registerMetaType<template_options>();
|
||||
Grantlee::registerMetaType<print_options>();
|
||||
|
||||
QVariantHash mapping;
|
||||
QVariantList diveList;
|
||||
|
@ -64,6 +65,7 @@ QString TemplateLayout::generate()
|
|||
}
|
||||
mapping.insert("dives", diveList);
|
||||
mapping.insert("template_options", QVariant::fromValue(*templateOptions));
|
||||
mapping.insert("print_options", QVariant::fromValue(*PrintOptions));
|
||||
|
||||
Grantlee::Context c(mapping);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue