summaryrefslogtreecommitdiffstats
path: root/src/printsupport/kernel/qprinterinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/printsupport/kernel/qprinterinfo.cpp')
-rw-r--r--src/printsupport/kernel/qprinterinfo.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/printsupport/kernel/qprinterinfo.cpp b/src/printsupport/kernel/qprinterinfo.cpp
index 8958573411..baff9e88dc 100644
--- a/src/printsupport/kernel/qprinterinfo.cpp
+++ b/src/printsupport/kernel/qprinterinfo.cpp
@@ -149,7 +149,7 @@ QString QPrinterInfo::printerName() const
*/
bool QPrinterInfo::isNull() const
{
- const Q_D(QPrinterInfo);
+ Q_D(const QPrinterInfo);
return d == &QPrinterInfoPrivate::shared_null;
}
@@ -158,7 +158,7 @@ bool QPrinterInfo::isNull() const
*/
bool QPrinterInfo::isDefault() const
{
- const Q_D(QPrinterInfo);
+ Q_D(const QPrinterInfo);
return d->isDefault;
}
@@ -172,10 +172,9 @@ bool QPrinterInfo::isDefault() const
On Mac OS X 10.3, this function always returns an empty list.
*/
-#ifdef Q_WS_QPA
QList<QPrinter::PaperSize> QPrinterInfo::supportedPaperSizes() const
{
- const Q_D(QPrinterInfo);
+ Q_D(const QPrinterInfo);
if (!isNull() && !d->hasPaperSizes) {
d->paperSizes = QPlatformPrinterSupportPlugin::get()->supportedPaperSizes(*this);
d->hasPaperSizes = true;
@@ -199,8 +198,6 @@ QPrinterInfo QPrinterInfo::defaultPrinter()
return QPlatformPrinterSupportPlugin::get()->defaultPrinter();
}
-#endif //Q_WS_QPA
-
QT_END_NAMESPACE
#endif // QT_NO_PRINTER