Printing: add member function to print options

Get the currently selected template.

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-07-26 14:59:59 +02:00 committed by Lubomir I. Ivanov
parent 61a8ac09b0
commit b37498d355
2 changed files with 6 additions and 0 deletions

View file

@ -96,3 +96,8 @@ void PrintOptions::on_editButton_clicked()
te.exec();
setup();
}
QString PrintOptions::getSelectedTemplate()
{
return ui.printTemplate->currentData().toString();
}

View file

@ -53,6 +53,7 @@ class PrintOptions : public QWidget {
public:
explicit PrintOptions(QWidget *parent, struct print_options *printOpt, struct template_options *templateOpt);
void setup();
QString getSelectedTemplate();
private:
Ui::PrintOptions ui;