diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-06-26 04:21:31 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-07-05 21:00:20 +0300 |
commit | ff594c65e3597f53164302f79df05c0b5e70980c (patch) | |
tree | 82380f483ad913d15e164e39bca8bb56d1c700bd | |
parent | 963e09ad7b01d99537b59037e2cd1fbedf480261 (diff) | |
download | subsurface-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>
-rw-r--r-- | qt-ui/printoptions.cpp | 7 | ||||
-rw-r--r-- | qt-ui/printoptions.h | 1 |
2 files changed, 8 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(); +} diff --git a/qt-ui/printoptions.h b/qt-ui/printoptions.h index 13ef4e310..324697762 100644 --- a/qt-ui/printoptions.h +++ b/qt-ui/printoptions.h @@ -41,6 +41,7 @@ slots: void on_radioTablePrint_clicked(bool check); void on_radioDiveListPrint_clicked(bool check); void on_printTemplate_currentIndexChanged(int index); + void on_editButton_clicked(); }; #endif // PRINTOPTIONS_H |