diff options
author | Albert Astals Cid <albert.astals.cid@kdab.com> | 2017-12-04 12:57:40 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2017-12-06 07:28:11 +0000 |
commit | 881690969cc5a6a78df41e2d80ea1fa7bf07cb27 (patch) | |
tree | a5e26a223c8a7448a875385db8bf5ee0918a1057 /src/printsupport/widgets/qcupsjobwidget_p.h | |
parent | f135d515e8d6aaf1c136aef68e08b4f759075310 (diff) |
Remove QCupsJobWidget::setPrinter
It is only ever called after the constructor so merge the code
Change-Id: I381165ad90c85342e5db3c16327d729388b71fb2
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'src/printsupport/widgets/qcupsjobwidget_p.h')
-rw-r--r-- | src/printsupport/widgets/qcupsjobwidget_p.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/printsupport/widgets/qcupsjobwidget_p.h b/src/printsupport/widgets/qcupsjobwidget_p.h index 7d3c15938f..2aca6bc928 100644 --- a/src/printsupport/widgets/qcupsjobwidget_p.h +++ b/src/printsupport/widgets/qcupsjobwidget_p.h @@ -71,9 +71,8 @@ class QCupsJobWidget : public QWidget Q_OBJECT public: - explicit QCupsJobWidget(QWidget *parent = 0); + explicit QCupsJobWidget(QPrinter *printer, QWidget *parent = nullptr); ~QCupsJobWidget(); - void setPrinter(QPrinter *printer); void setupPrinter(); private Q_SLOTS: |