summaryrefslogtreecommitdiffstats
path: root/qt-ui/printdialog.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-12-04 13:51:34 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-12-04 13:51:34 +0200
commitd90cca5c4ed8d98704aaf24e59ba00160cb7dc4e (patch)
tree0cb4c62ce5cc5cd30ee7d1b3b8f645def49bb238 /qt-ui/printdialog.h
parent576c3f559f263cb1e14ade637cab5e4fdf067b43 (diff)
downloadsubsurface-d90cca5c4ed8d98704aaf24e59ba00160cb7dc4e.tar.gz
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>
Diffstat (limited to 'qt-ui/printdialog.h')
-rw-r--r--qt-ui/printdialog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/printdialog.h b/qt-ui/printdialog.h
index 097de9531..5c5c1fbf6 100644
--- a/qt-ui/printdialog.h
+++ b/qt-ui/printdialog.h
@@ -23,6 +23,7 @@ private:
QPrinter printer;
private slots:
+ void previewClicked();
void printClicked();
void onPaintRequested(QPrinter *);
};