summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/printoptions.cpp5
-rw-r--r--qt-ui/printoptions.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/printoptions.cpp b/qt-ui/printoptions.cpp
index 223dfab93..6cfbed481 100644
--- a/qt-ui/printoptions.cpp
+++ b/qt-ui/printoptions.cpp
@@ -96,3 +96,8 @@ void PrintOptions::on_editButton_clicked()
te.exec();
setup();
}
+
+QString PrintOptions::getSelectedTemplate()
+{
+ return ui.printTemplate->currentData().toString();
+}
diff --git a/qt-ui/printoptions.h b/qt-ui/printoptions.h
index 326935b8c..b9912d2ed 100644
--- a/qt-ui/printoptions.h
+++ b/qt-ui/printoptions.h
@@ -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;