Printing: implement QPlainTextEdit in TemplateEdit

This is the main area to edit the templates inside Subsurface.
Whenever the user edits a template the edited template is saved in
custom.html and custom.html is considered the selected printing
template.

Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Gehad elrobey 2015-07-05 07:29:46 +02:00 committed by Lubomir I. Ivanov
parent c44496e23d
commit cc53dc7acf
3 changed files with 23 additions and 0 deletions

View file

@ -110,4 +110,5 @@ void PrintOptions::on_editButton_clicked()
{
TemplateEdit te(this, printOptions, templateOptions);
te.exec();
setup();
}