mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:43: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"
|
||||
|
||||
#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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue