[Uml-devel] KDE/kdesdk/umbrello/umbrello
Ralf Habacker
ralf.habacker at gmail.com
Tue Apr 3 14:01:57 UTC 2012
SVN commit 1288073 by habacker:
Reduced differences to soc-umbrello-branch.
M +4 -4 umlviewimageexportermodel.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/umlviewimageexportermodel.cpp #1288072:1288073
@@ -423,7 +423,7 @@
// and the actual painting
scene->forceUpdateWidgetFontMetrics(painter);
- QRect rect = scene->diagramRect();
+ UMLSceneRect rect = scene->diagramRect();
painter->translate(-rect.x(), -rect.y());
scene->getDiagram(rect, *painter);
@@ -460,7 +460,7 @@
}
bool exportSuccessful;
- QRect rect = scene->diagramRect();
+ UMLSceneRect rect = scene->diagramRect();
QSvgGenerator generator;
generator.setFileName(fileName);
@@ -509,7 +509,7 @@
}
bool exportSuccessful;
- QRect rect = scene->diagramRect();
+ UMLSceneRect rect = scene->diagramRect();
QPixmap diagram(rect.width(), rect.height());
scene->getDiagram(rect, diagram);
exportSuccessful = diagram.save(fileName, qPrintable(imageType.toUpper()));
@@ -526,7 +526,7 @@
* @return True if the operation was successful,
* false if a problem occurred while exporting.
*/
-bool UMLViewImageExporterModel::fixEPS(const QString &fileName, const QRect& rect) const
+bool UMLViewImageExporterModel::fixEPS(const QString &fileName, const UMLSceneRect& rect) const
{
// now open the file and make a correct eps out of it
QFile epsfile(fileName);
More information about the umbrello-devel
mailing list