summaryrefslogtreecommitdiffstats
path: root/src/printsupport/kernel/qprintengine_win_p.h
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2017-08-21 14:34:17 +0200
committerAndy Shaw <andy.shaw@qt.io>2017-08-25 06:50:10 +0000
commit8ebfe00f4ab79516a8276929a682c24f4c675b5f (patch)
tree300b3bc21caddde394ecdff542993a060b3b1bf1 /src/printsupport/kernel/qprintengine_win_p.h
parent31190140c3aa11570f4c07ca2cb62b2bfe96a131 (diff)
Initialize the print engine with the given printer name
Originally when the QPrinter was created it would create the engine with the default printer and then change it afterwards even though the desired printer may already be known here. So by passing the printer name we ensure that it is initialized with the desired one right away. Task-number: QTBUG-62221 Change-Id: Iaa90243708b57bf89354a527a982ac45c991f603 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/printsupport/kernel/qprintengine_win_p.h')
-rw-r--r--src/printsupport/kernel/qprintengine_win_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/printsupport/kernel/qprintengine_win_p.h b/src/printsupport/kernel/qprintengine_win_p.h
index 196263df74..876155a3a5 100644
--- a/src/printsupport/kernel/qprintengine_win_p.h
+++ b/src/printsupport/kernel/qprintengine_win_p.h
@@ -73,7 +73,7 @@ class Q_PRINTSUPPORT_EXPORT QWin32PrintEngine : public QAlphaPaintEngine, public
{
Q_DECLARE_PRIVATE(QWin32PrintEngine)
public:
- QWin32PrintEngine(QPrinter::PrinterMode mode);
+ QWin32PrintEngine(QPrinter::PrinterMode mode, const QString &deviceId);
// override QWin32PaintEngine
bool begin(QPaintDevice *dev);