aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/printoptions.cpp
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-06-26 04:21:31 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-07-05 21:00:20 +0300
commitff594c65e3597f53164302f79df05c0b5e70980c (patch)
tree82380f483ad913d15e164e39bca8bb56d1c700bd /qt-ui/printoptions.cpp
parent963e09ad7b01d99537b59037e2cd1fbedf480261 (diff)
downloadsubsurface-ff594c65e3597f53164302f79df05c0b5e70980c.tar.gz
Printing: call TemplateEdit when edit is triggered
Edit button should open TemplateEdit dialog. 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.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-ui/printoptions.cpp b/qt-ui/printoptions.cpp
index e2684b6ed..0609b2b13 100644
--- a/qt-ui/printoptions.cpp
+++ b/qt-ui/printoptions.cpp
@@ -1,4 +1,5 @@
#include "printoptions.h"
+#include "templateedit.h"
#include <QDebug>
PrintOptions::PrintOptions(QWidget *parent, struct print_options *printOpt)
@@ -97,3 +98,9 @@ void PrintOptions::on_printTemplate_currentIndexChanged(int index)
break;
}
}
+
+void PrintOptions::on_editButton_clicked()
+{
+ TemplateEdit te;
+ te.exec();
+}