aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-03-26 23:36:06 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-27 10:42:07 -0700
commit198199adaea29963cac81325d45e13310091ff35 (patch)
tree0ef193db7cf80ef29b0e4f9f97cfa1eec6b0c83a /qt-ui/mainwindow.cpp
parent605cff32a51bf8b5b7dba73fc18622afded39539 (diff)
downloadsubsurface-198199adaea29963cac81325d45e13310091ff35.tar.gz
Remove printing when building for Android
Qt for Android doesn't support printing. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 5b4e9b43d..86d612457 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -36,7 +36,9 @@
#include "simplewidgets.h"
#include "diveplanner.h"
#include "about.h"
+#ifndef NO_PRINTING
#include "printdialog.h"
+#endif
#include "divelogimportdialog.h"
#ifndef NO_USERMANUAL
#include "usermanual.h"
@@ -91,6 +93,9 @@ MainWindow::MainWindow() : QMainWindow(),
#ifdef NO_USERMANUAL
ui.menuHelp->removeAction(ui.actionUserManual);
#endif
+#ifdef NO_PRINTING
+ ui.menuFile->removeAction(ui.actionPrint);
+#endif
}
MainWindow::~MainWindow()
@@ -274,9 +279,11 @@ void MainWindow::on_actionExportUDDF_triggered()
void MainWindow::on_actionPrint_triggered()
{
+#ifndef NO_PRINTING
PrintDialog dlg(this);
dlg.exec();
+#endif
}
void MainWindow::disableDcShortcuts()