diff options
author | Albert Astals Cid <albert.astals.cid@kdab.com> | 2018-02-06 15:10:39 +0100 |
---|---|---|
committer | Albert Astals Cid <albert.astals.cid@kdab.com> | 2018-03-23 15:53:40 +0000 |
commit | e8260edf87054bd52ce0a59013bfc0b79d955650 (patch) | |
tree | 14d0215c7ab8424c1d68df615131081d23dc56ce | |
parent | c0a7c7b42d7ba91d81060a46817cd2a4621b29f8 (diff) |
Unify QPlatformPrintDevice constructors
Change-Id: I01714a626e204c73456ebed987055662331d6a3a
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
-rw-r--r-- | src/printsupport/kernel/qplatformprintdevice.cpp | 17 | ||||
-rw-r--r-- | src/printsupport/kernel/qplatformprintdevice.h | 3 |
2 files changed, 1 insertions, 19 deletions
diff --git a/src/printsupport/kernel/qplatformprintdevice.cpp b/src/printsupport/kernel/qplatformprintdevice.cpp index 46ce24eded..23a92fc2a1 100644 --- a/src/printsupport/kernel/qplatformprintdevice.cpp +++ b/src/printsupport/kernel/qplatformprintdevice.cpp @@ -50,23 +50,6 @@ QT_BEGIN_NAMESPACE #ifndef QT_NO_PRINTER -QPlatformPrintDevice::QPlatformPrintDevice() - : m_isRemote(false), - m_supportsMultipleCopies(false), - m_supportsCollateCopies(false), - m_havePageSizes(false), - m_supportsCustomPageSizes(false), - m_haveResolutions(false), - m_haveInputSlots(false), - m_haveOutputBins(false), - m_haveDuplexModes(false), - m_haveColorModes(false) -#ifndef QT_NO_MIMETYPE - , m_haveMimeTypes(false) -#endif -{ -} - QPlatformPrintDevice::QPlatformPrintDevice(const QString &id) : m_id(id), m_isRemote(false), diff --git a/src/printsupport/kernel/qplatformprintdevice.h b/src/printsupport/kernel/qplatformprintdevice.h index a988518547..14701271c3 100644 --- a/src/printsupport/kernel/qplatformprintdevice.h +++ b/src/printsupport/kernel/qplatformprintdevice.h @@ -69,8 +69,7 @@ class Q_PRINTSUPPORT_EXPORT QPlatformPrintDevice { Q_DISABLE_COPY(QPlatformPrintDevice) public: - QPlatformPrintDevice(); - explicit QPlatformPrintDevice(const QString &id); + explicit QPlatformPrintDevice(const QString &id = QString()); virtual ~QPlatformPrintDevice(); virtual QString id() const; |