diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-09 15:37:53 +0300 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-09 21:01:42 +0300 |
commit | 52534bfb686ade48938768bb137d82c0bb849efc (patch) | |
tree | 066a148d3170dadcbb4d0de64762541cff5dfa18 /qt-ui/mainwindow.cpp | |
parent | 35356e364d2f0765c04c6d8838ff403743d20ae3 (diff) | |
download | subsurface-52534bfb686ade48938768bb137d82c0bb849efc.tar.gz |
Print: add UI for a print dialog
PrintOptions is a QWidget class to be used as an
addition to a future print dialog (possibly based on
QPrintDialog). Currently only contains a couple of
radio buttons.
PrintDialog (printdialog.cpp/h) which is a basic QDialog
is currently added for testing only and it holds
an instance of PrintOptions.
Calling File->Print opens this test dialog for now.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index c0cdc9eb5..a78b84565 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -34,6 +34,7 @@ #include "simplewidgets.h" #include "diveplanner.h" #include "about.h" +#include "printdialog.h" static MainWindow* instance = 0; @@ -218,7 +219,7 @@ void MainWindow::on_actionExportUDDF_triggered() void MainWindow::on_actionPrint_triggered() { - qDebug("actionPrint"); + PrintDialog::instance()->runDialog(); } void MainWindow::disableDcShortcuts() |