diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2014-11-14 00:57:42 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-13 15:05:11 -0800 |
commit | 7ea728e95ffcc72360d49648d7e332a06faa49ba (patch) | |
tree | cfb07ab36c024febdab25c2e67a90d7eef825b2a /qt-ui/printoptions.h | |
parent | b2077dc9c0bb9eeccbf48980d0d22269b621e8c3 (diff) | |
download | subsurface-7ea728e95ffcc72360d49648d7e332a06faa49ba.tar.gz |
Print: add the support to store margins and printer options
All the print options will be stored after the user closes
or "cancels" the print dialog.
There seems to be no good way to store the last
selected page size, because print dialogs are different and
some just list them as strings - A4, A3, etc.
The patch also applies the following changes:
- renames display.h's 'struct options' to 'struct print_options'
as these were really just for the print dialog
- the print_options dialog now stores more options as 'bool'
- demote PrintDialog's 'printOptions' to 'private'
Fixes #653
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/printoptions.h')
-rw-r--r-- | qt-ui/printoptions.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-ui/printoptions.h b/qt-ui/printoptions.h index e14ae46a1..658e7ec1d 100644 --- a/qt-ui/printoptions.h +++ b/qt-ui/printoptions.h @@ -10,12 +10,12 @@ class PrintOptions : public QWidget { Q_OBJECT public: - explicit PrintOptions(QWidget *parent = 0, struct options *printOpt = 0); - void setup(struct options *printOpt); + explicit PrintOptions(QWidget *parent = 0, struct print_options *printOpt = 0); + void setup(struct print_options *printOpt); private: Ui::PrintOptions ui; - struct options *printOptions; + struct print_options *printOptions; bool hasSetupSlots; private |