Fix build for Android with android-clang
dialogs/qprintdialog_unix.cpp:149:15: error: private field 'm_printer' is not used [-Werror,-Wunused-private-field]
QPrinter *m_printer;
^
Change-Id: Idce515a3e66019756b6ad2d305072e0a89bb823b
Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
bb10
parent
6e2ad0c79c
commit
5349cb9d3c
|
|
@ -146,7 +146,9 @@ private slots:
|
|||
|
||||
private:
|
||||
friend class QUnixPrintWidgetPrivate;
|
||||
#if QT_CONFIG(cups)
|
||||
QPrinter *m_printer;
|
||||
#endif
|
||||
Ui::QPrintPropertiesWidget widget;
|
||||
QDialogButtonBox *m_buttons;
|
||||
#if QT_CONFIG(cupsjobwidget)
|
||||
|
|
@ -351,7 +353,9 @@ QPrintPropertiesDialog::QPrintPropertiesDialog(QPrinter *printer, QPrintDevice *
|
|||
QPrinter::OutputFormat outputFormat, const QString &printerName,
|
||||
QAbstractPrintDialog *parent)
|
||||
: QDialog(parent)
|
||||
#if QT_CONFIG(cups)
|
||||
, m_printer(printer)
|
||||
#endif
|
||||
{
|
||||
setWindowTitle(tr("Printer Properties"));
|
||||
QVBoxLayout *lay = new QVBoxLayout(this);
|
||||
|
|
|
|||
Loading…
Reference in New Issue