Fix NO_PRINTING when printing is disabled in Qt

Qt for android doesn't have any printing support, so this fixes
NO_PRINTING so we can build against a Qt without any printing support at
all.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Anton Lundin 2015-07-01 17:08:35 +02:00 committed by Dirk Hohndel
parent eda0190e2a
commit c3f6fcb0bf
3 changed files with 6 additions and 4 deletions

View file

@ -2,6 +2,7 @@
#include "printoptions.h"
#include "mainwindow.h"
#ifndef NO_PRINTING
#include <QProgressBar>
#include <QPrintPreviewDialog>
#include <QPrintDialog>
@ -10,7 +11,6 @@
#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.