summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Fischer <[email protected]>2014-12-09 11:40:42 +0100
committerAndi Fischer <[email protected]>2014-12-09 11:40:42 +0100
commit3b3cc6a12d6902a6f65af054314a28cc1bbebabd (patch)
treeca378ea4bbddb9b8527f351bc32b724ffced80a5
parent1431ba1fedf17e44cdb5b5a5a5f610d6273d81e7 (diff)
Fix compiling and set printer output format.
-rw-r--r--umbrello/dialogs/umlroledialog.cpp1
-rw-r--r--umbrello/umlviewimageexportermodel.cpp4
2 files changed, 2 insertions, 3 deletions
diff --git a/umbrello/dialogs/umlroledialog.cpp b/umbrello/dialogs/umlroledialog.cpp
index 80085cc..7b53279 100644
--- a/umbrello/dialogs/umlroledialog.cpp
+++ b/umbrello/dialogs/umlroledialog.cpp
@@ -12,6 +12,7 @@
#include "umlroledialog.h"
// app includes
+#include "debug_utils.h"
#include "umlrole.h"
#include "umlroleproperties.h"
diff --git a/umbrello/umlviewimageexportermodel.cpp b/umbrello/umlviewimageexportermodel.cpp
index 2c1939a..fd70abc 100644
--- a/umbrello/umlviewimageexportermodel.cpp
+++ b/umbrello/umlviewimageexportermodel.cpp
@@ -436,9 +436,7 @@ bool UMLViewImageExporterModel::exportViewToEps(UMLScene* scene, const QString &
printer = new QPrinter(QPrinter::ScreenResolution);
}
printer->setOutputFileName(fileName);
-#if 0 //FIXME KF5
- printer->setOutputFormat(QPrinter::PostScriptFormat);
-#endif
+ printer->setOutputFormat(QPrinter::PdfFormat);
printer->setColorMode(QPrinter::Color);
// do not call printer.setup(); because we want no user