From 1cf31eeaf926a90853919fcbe51f5830b88d9bd3 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 4 Jun 2015 10:18:37 -0700 Subject: [PATCH] Make Subsurface compile with NO_PRINTING set Signed-off-by: Dirk Hohndel --- qt-ui/printdialog.cpp | 2 ++ qt-ui/printdialog.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/qt-ui/printdialog.cpp b/qt-ui/printdialog.cpp index 909b0b598..e7d9099da 100644 --- a/qt-ui/printdialog.cpp +++ b/qt-ui/printdialog.cpp @@ -10,6 +10,7 @@ #define SETTINGS_GROUP "PrintDialog" +#ifndef NO_PRINTING PrintDialog::PrintDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f) { // check if the options were previously stored in the settings; if not use some defaults. @@ -111,3 +112,4 @@ void PrintDialog::printClicked(void) void PrintDialog::onPaintRequested(QPrinter *printerPtr) { } +#endif diff --git a/qt-ui/printdialog.h b/qt-ui/printdialog.h index 1c6d30dfd..9937cd549 100644 --- a/qt-ui/printdialog.h +++ b/qt-ui/printdialog.h @@ -6,6 +6,7 @@ #include "printoptions.h" #include "printer.h" +#ifndef NO_PRINTING class QProgressBar; class PrintOptions; class PrintLayout; @@ -31,4 +32,5 @@ slots: void printClicked(); void onPaintRequested(QPrinter *); }; +#endif #endif // PRINTDIALOG_H