mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Printing: add template_options struct that contains template
The template_options struct holds the settings variables in the code. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
ff594c65e3
commit
a600ea5201
6 changed files with 18 additions and 7 deletions
|
@ -2,7 +2,7 @@
|
|||
#include "templateedit.h"
|
||||
#include <QDebug>
|
||||
|
||||
PrintOptions::PrintOptions(QWidget *parent, struct print_options *printOpt)
|
||||
PrintOptions::PrintOptions(QWidget *parent, struct print_options *printOpt, struct template_options *templateOpt)
|
||||
{
|
||||
hasSetupSlots = false;
|
||||
ui.setupUi(this);
|
||||
|
@ -11,6 +11,7 @@ PrintOptions::PrintOptions(QWidget *parent, struct print_options *printOpt)
|
|||
if (!printOpt)
|
||||
return;
|
||||
setup(printOpt);
|
||||
templateOptions = templateOpt;
|
||||
}
|
||||
|
||||
void PrintOptions::setup(struct print_options *printOpt)
|
||||
|
@ -101,6 +102,6 @@ void PrintOptions::on_printTemplate_currentIndexChanged(int index)
|
|||
|
||||
void PrintOptions::on_editButton_clicked()
|
||||
{
|
||||
TemplateEdit te;
|
||||
TemplateEdit te(this, templateOptions);
|
||||
te.exec();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue