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>
This commit is contained in:
Anton Lundin 2014-03-26 23:36:06 +01:00 committed by Dirk Hohndel
parent 605cff32a5
commit 198199adae
4 changed files with 20 additions and 6 deletions

View file

@ -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()

View file

@ -29,5 +29,4 @@ slots:
void printClicked();
void onPaintRequested(QPrinter *);
};
#endif // PRINTDIALOG_H