summaryrefslogtreecommitdiffstats
path: root/qt-ui/printoptions.cpp
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-06-29 03:16:19 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-07-05 21:00:25 +0300
commita600ea5201f55a3182cb24a0553d02aefad2c51b (patch)
treec356e41924ef3b39c4aa5dec6420b1574e518566 /qt-ui/printoptions.cpp
parentff594c65e3597f53164302f79df05c0b5e70980c (diff)
downloadsubsurface-a600ea5201f55a3182cb24a0553d02aefad2c51b.tar.gz
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>
Diffstat (limited to 'qt-ui/printoptions.cpp')
-rw-r--r--qt-ui/printoptions.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-ui/printoptions.cpp b/qt-ui/printoptions.cpp
index 0609b2b13..a7c520b21 100644
--- a/qt-ui/printoptions.cpp
+++ b/qt-ui/printoptions.cpp
@@ -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();
}