mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 21:43:23 +00:00
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:
parent
963e09ad7b
commit
ff594c65e3
2 changed files with 8 additions and 0 deletions
|
@ -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();
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue