diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-06-24 05:12:45 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-07-05 20:59:34 +0300 |
commit | ce3d2abd83717abb1b4b5c8a8eecc04ab1d45e66 (patch) | |
tree | cd368020834d93de311aabe068afd7bb4c4851ca /qt-ui | |
parent | 3d5caabe4acefd08e27167a9c4220dc5fb22d537 (diff) | |
download | subsurface-ce3d2abd83717abb1b4b5c8a8eecc04ab1d45e66.tar.gz |
Printing: show warning message for WIP features
Show warning message before proceeding to print 'Table' or
'Statistics' print layout. This should be used during the
development phase only.
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/printdialog.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qt-ui/printdialog.cpp b/qt-ui/printdialog.cpp index 9949b104d..6e193d9bd 100644 --- a/qt-ui/printdialog.cpp +++ b/qt-ui/printdialog.cpp @@ -8,6 +8,7 @@ #include <QPrintDialog> #include <QShortcut> #include <QSettings> +#include <QMessageBox> #define SETTINGS_GROUP "PrintDialog" @@ -93,6 +94,13 @@ void PrintDialog::onFinished() void PrintDialog::previewClicked(void) { + if (printOptions.type == print_options::TABLE || printOptions.type == print_options::STATISTICS) { + QMessageBox msgBox; + msgBox.setText("This feature is not implemented yet"); + msgBox.exec(); + return; + } + QPrintPreviewDialog previewDialog(&qprinter, this, Qt::Window | Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint | Qt::WindowTitleHint); @@ -102,6 +110,13 @@ void PrintDialog::previewClicked(void) void PrintDialog::printClicked(void) { + if (printOptions.type == print_options::TABLE || printOptions.type == print_options::STATISTICS) { + QMessageBox msgBox; + msgBox.setText("This feature is not implemented yet"); + msgBox.exec(); + return; + } + QPrintDialog printDialog(&qprinter, this); if (printDialog.exec() == QDialog::Accepted) { switch (printOptions.type) { |