Make Subsurface compile with NO_PRINTING set

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-06-04 10:18:37 -07:00
parent 9bda2e2d82
commit 1cf31eeaf9
2 changed files with 4 additions and 0 deletions

View file

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

View file

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