Printing: search for grantlee templates in the templates directory

We need to dynamically look up for all the existing templates in the
template directory. A grantlee template can be named any name but we
ignore files ending with '~'.

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-24 09:26:25 +02:00 committed by Lubomir I. Ivanov
parent 0b085f79b1
commit f76ebe3b9d
3 changed files with 20 additions and 0 deletions

View file

@ -6,6 +6,9 @@
#include "printoptions.h"
int getTotalWork(print_options *printOptions);
void find_all_templates();
extern QList<QString> grantlee_templates;
class TemplateLayout : public QObject {
Q_OBJECT