mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
PrintDialog: add separate Preview/Print buttons
We rename our old 'Print' button to 'Preview' (as it did just that), and add a new one called 'Print' which does the direct printing, by creating a QPrintDialog instance. Both buttons are located on top of the dialog for now in a QHBoxLayout. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
576c3f559f
commit
d90cca5c4e
2 changed files with 20 additions and 4 deletions
|
@ -23,6 +23,7 @@ private:
|
|||
QPrinter printer;
|
||||
|
||||
private slots:
|
||||
void previewClicked();
|
||||
void printClicked();
|
||||
void onPaintRequested(QPrinter *);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue