diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-08-21 19:20:43 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-08-22 18:37:48 +0300 |
commit | f45fdc8660f912845f37809cae41e2f3b02bc800 (patch) | |
tree | 5e18f30cab6ed6d72182d096e25ba80368c5b212 | |
parent | b6d373520457d702f47d6026cea1c8c57c6528c5 (diff) | |
download | subsurface-f45fdc8660f912845f37809cae41e2f3b02bc800.tar.gz |
Printing: disable template editing for statistics templates
Editing statistics templates is not supported now, as there is no
custom template for statistics printing, so disable the template
edit area.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
-rw-r--r-- | qt-ui/templateedit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/templateedit.cpp b/qt-ui/templateedit.cpp index 3315b12ef..b50338090 100644 --- a/qt-ui/templateedit.cpp +++ b/qt-ui/templateedit.cpp @@ -35,6 +35,9 @@ TemplateEdit::TemplateEdit(QWidget *parent, struct print_options *printOptions, ui->plainTextEdit->setPlainText(grantlee_template); editingCustomColors = false; + if (printOptions->type == print_options::STATISTICS) { + ui->plainTextEdit->setEnabled(false); + } updatePreview(); } |