Skip to content

Commit

Permalink
Unify QPlatformPrintDevice constructors
Browse files Browse the repository at this point in the history
Change-Id: I01714a626e204c73456ebed987055662331d6a3a
Reviewed-by: Frederik Gladhorn <[email protected]>
  • Loading branch information
albert-astals-cid-kdab committed Mar 23, 2018
1 parent c0a7c7b commit e8260ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
17 changes: 0 additions & 17 deletions src/printsupport/kernel/qplatformprintdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
3 changes: 1 addition & 2 deletions src/printsupport/kernel/qplatformprintdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e8260ed

Please sign in to comment.