diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-07-04 23:02:17 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-07-05 21:02:09 +0300 |
commit | c35092f5c9ce30f2b8df4c554302a3e7c8716a07 (patch) | |
tree | 646f59ba8b5cfab672354fdd4ff0c7fdce659ca0 /qt-ui/printoptions.cpp | |
parent | 815072d2ae29811271af197e2330cc331d58f9c6 (diff) | |
download | subsurface-c35092f5c9ce30f2b8df4c554302a3e7c8716a07.tar.gz |
Printing: add custom options to the PrintDialog
Add:
-custom.html template
-custom template to print_options struct
-options to the options dialog
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/printoptions.cpp')
-rw-r--r-- | qt-ui/printoptions.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/printoptions.cpp b/qt-ui/printoptions.cpp index a7c520b21..cd38e3560 100644 --- a/qt-ui/printoptions.cpp +++ b/qt-ui/printoptions.cpp @@ -36,6 +36,9 @@ void PrintOptions::setup(struct print_options *printOpt) case print_options::TWO_DIVE: ui.printTemplate->setCurrentIndex(1); break; + case print_options::CUSTOM: + ui.printTemplate->setCurrentIndex(2); + break; } // general print option checkboxes @@ -97,6 +100,9 @@ void PrintOptions::on_printTemplate_currentIndexChanged(int index) case 1: printOptions->p_template = print_options::TWO_DIVE; break; + case 2: + printOptions->p_template = print_options::CUSTOM; + break; } } |