From b37498d35515ba981fe0de1f19f048f5e3dbb975 Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Sun, 26 Jul 2015 14:59:59 +0200 Subject: Printing: add member function to print options Get the currently selected template. Signed-off-by: Gehad elrobey Signed-off-by: Lubomir I. Ivanov --- qt-ui/printoptions.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qt-ui/printoptions.cpp') 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(); +} -- cgit v1.2.3-70-g09d2