mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 00:03:24 +00:00
Make Subsurface compile with NO_PRINTING set
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9bda2e2d82
commit
1cf31eeaf9
2 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
#define SETTINGS_GROUP "PrintDialog"
|
#define SETTINGS_GROUP "PrintDialog"
|
||||||
|
|
||||||
|
#ifndef NO_PRINTING
|
||||||
PrintDialog::PrintDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f)
|
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.
|
// 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)
|
void PrintDialog::onPaintRequested(QPrinter *printerPtr)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
#include "printoptions.h"
|
#include "printoptions.h"
|
||||||
#include "printer.h"
|
#include "printer.h"
|
||||||
|
|
||||||
|
#ifndef NO_PRINTING
|
||||||
class QProgressBar;
|
class QProgressBar;
|
||||||
class PrintOptions;
|
class PrintOptions;
|
||||||
class PrintLayout;
|
class PrintLayout;
|
||||||
|
@ -31,4 +32,5 @@ slots:
|
||||||
void printClicked();
|
void printClicked();
|
||||||
void onPaintRequested(QPrinter *);
|
void onPaintRequested(QPrinter *);
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
#endif // PRINTDIALOG_H
|
#endif // PRINTDIALOG_H
|
||||||
|
|
Loading…
Add table
Reference in a new issue