summaryrefslogtreecommitdiffstats
path: root/src/printsupport/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'src/printsupport/kernel')
-rw-r--r--src/printsupport/kernel/qplatformprintdevice.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/printsupport/kernel/qplatformprintdevice.cpp b/src/printsupport/kernel/qplatformprintdevice.cpp
index eabd7e7295..cbb67aefdc 100644
--- a/src/printsupport/kernel/qplatformprintdevice.cpp
+++ b/src/printsupport/kernel/qplatformprintdevice.cpp
@@ -302,7 +302,11 @@ QPrint::InputSlot QPlatformPrintDevice::defaultInputSlot() const
{
QPrint::InputSlot input;
input.key = QByteArrayLiteral("Auto");
+#if QT_CONFIG(printdialog)
input.name = QPrintDialog::tr("Automatic");
+#else
+ input.name = QString::fromLatin1("Automatic");
+#endif
input.id = QPrint::Auto;
return input;
}
@@ -322,7 +326,11 @@ QPrint::OutputBin QPlatformPrintDevice::defaultOutputBin() const
{
QPrint::OutputBin output;
output.key = QByteArrayLiteral("Auto");
+#if QT_CONFIG(printdialog)
output.name = QPrintDialog::tr("Automatic");
+#else
+ output.name = QString::fromLatin1("Automatic");
+#endif
output.id = QPrint::AutoOutputBin;
return output;
}