aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/modelinglib
diff options
context:
space:
mode:
authorJochen Becher <[email protected]>2018-08-09 16:30:41 +0200
committerJochen Becher <[email protected]>2018-09-03 17:52:04 +0000
commitd20b907b94d496a0205e87740a4ca083e9ae0e4b (patch)
tree5a2bde74719054ba719841090937fa101ac6ea98 /src/libs/modelinglib
parent63bd6938c6ab17c41610d408971244696099b4a4 (diff)
ModelEditor: Reduce size of images in clipboard
Pasting lots of diagrams into a document needs to much RAM. Change-Id: I7f8e3e11b55ab5861ed708d622d32b473b6cb86c Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/libs/modelinglib')
-rw-r--r--src/libs/modelinglib/qmt/diagram_scene/diagramscenemodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/modelinglib/qmt/diagram_scene/diagramscenemodel.cpp b/src/libs/modelinglib/qmt/diagram_scene/diagramscenemodel.cpp
index bb4eed6bddc..8be34efd8c4 100644
--- a/src/libs/modelinglib/qmt/diagram_scene/diagramscenemodel.cpp
+++ b/src/libs/modelinglib/qmt/diagram_scene/diagramscenemodel.cpp
@@ -392,8 +392,8 @@ void DiagramSceneModel::copyToClipboard()
auto mimeData = new QMimeData();
// Create the image with the size of the shrunk scene
- const int scaleFactor = 4;
- const int border = 4;
+ const int scaleFactor = 1;
+ const int border = 5;
const int baseDpi = 75;
const int dotsPerMeter = 10000 * baseDpi / 254;
QSize imageSize = status.m_sceneBoundingRect.size().toSize();