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>
This commit is contained in:
Gehad elrobey 2015-06-26 04:21:31 +02:00 committed by Lubomir I. Ivanov
parent 963e09ad7b
commit ff594c65e3
2 changed files with 8 additions and 0 deletions

View file

@ -1,4 +1,5 @@
#include "printoptions.h" #include "printoptions.h"
#include "templateedit.h"
#include <QDebug> #include <QDebug>
PrintOptions::PrintOptions(QWidget *parent, struct print_options *printOpt) PrintOptions::PrintOptions(QWidget *parent, struct print_options *printOpt)
@ -97,3 +98,9 @@ void PrintOptions::on_printTemplate_currentIndexChanged(int index)
break; break;
} }
} }
void PrintOptions::on_editButton_clicked()
{
TemplateEdit te;
te.exec();
}

View file

@ -41,6 +41,7 @@ slots:
void on_radioTablePrint_clicked(bool check); void on_radioTablePrint_clicked(bool check);
void on_radioDiveListPrint_clicked(bool check); void on_radioDiveListPrint_clicked(bool check);
void on_printTemplate_currentIndexChanged(int index); void on_printTemplate_currentIndexChanged(int index);
void on_editButton_clicked();
}; };
#endif // PRINTOPTIONS_H #endif // PRINTOPTIONS_H