summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <[email protected]>2015-06-01 13:09:57 +0200
committerRalf Habacker <[email protected]>2015-06-01 13:10:28 +0200
commit2c10db092ff42851bdb2e2c3aff5278116f2c3fa (patch)
tree75732c61e088d828e79b8cd876b1dbf8e178765a
parent773d12bf81ea1d4bea422403b621cb24f892a795 (diff)
Merge in Qt5 variant of QPrinter from frameworks branch.
-rw-r--r--umbrello/umlviewimageexportermodel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/umbrello/umlviewimageexportermodel.cpp b/umbrello/umlviewimageexportermodel.cpp
index 5bafee6..2cdd7b9 100644
--- a/umbrello/umlviewimageexportermodel.cpp
+++ b/umbrello/umlviewimageexportermodel.cpp
@@ -493,7 +493,11 @@ bool UMLViewImageExporterModel::exportViewToEps(UMLScene* scene, const QString &
printer = new QPrinter(QPrinter::ScreenResolution);
}
printer->setOutputFileName(fileName);
+#if QT_VERSION >= 0x050000
+ printer->setOutputFormat(QPrinter::PdfFormat);
+#else
printer->setOutputFormat(QPrinter::PostScriptFormat);
+#endif
printer->setColorMode(QPrinter::Color);
// do not call printer.setup(); because we want no user