summaryrefslogtreecommitdiff
path: root/cad/fritzing/files/patch-src_sketch_sketchwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cad/fritzing/files/patch-src_sketch_sketchwidget.cpp')
-rw-r--r--cad/fritzing/files/patch-src_sketch_sketchwidget.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/cad/fritzing/files/patch-src_sketch_sketchwidget.cpp b/cad/fritzing/files/patch-src_sketch_sketchwidget.cpp
index 3df0f7e521a8..744133bd3dfb 100644
--- a/cad/fritzing/files/patch-src_sketch_sketchwidget.cpp
+++ b/cad/fritzing/files/patch-src_sketch_sketchwidget.cpp
@@ -1,14 +1,14 @@
---- src/sketch/sketchwidget.cpp.orig 2025-04-02 10:33:24 UTC
+--- src/sketch/sketchwidget.cpp.orig 2025-10-07 13:46:45 UTC
+++ src/sketch/sketchwidget.cpp
@@ -42,6 +42,7 @@ along with Fritzing. If not, see <http://www.gnu.org/
- #include <QStatusBar>
- #include <QOpenGLWidget>
+ #include <QRandomGenerator>
+ #include <QMimeData>
+#include <cstdint>
#include <limits>
#include "../items/partfactory.h"
-@@ -998,7 +999,7 @@ void SketchWidget::deleteItemForCommand(long id, bool
+@@ -1009,7 +1010,7 @@ void SketchWidget::deleteItemForCommand(long id, bool
void SketchWidget::deleteItemForCommand(long id, bool deleteModelPart, bool doEmit, bool later) {
ItemBase * pitem = findItem(id);
@@ -17,7 +17,7 @@
if (pitem) {
deleteItem(pitem, deleteModelPart, doEmit, later);
}
-@@ -1012,7 +1013,7 @@ void SketchWidget::deleteItem(ItemBase * itemBase, boo
+@@ -1023,7 +1024,7 @@ void SketchWidget::deleteItem(ItemBase * itemBase, boo
void SketchWidget::deleteItem(ItemBase * itemBase, bool deleteModelPart, bool doEmit, bool later)
{
long id = itemBase->id();
@@ -26,3 +26,12 @@
// this is a hack to try to workaround a Qt 4.7 crash in QGraphicsSceneFindItemBspTreeVisitor::visit
// when using a custom boundingRect, after deleting an item, it still appears on the visit list.
+@@ -1384,7 +1385,7 @@ long SketchWidget::createWire(ConnectorItem * from, Co
+ .arg(newID)
+ .arg(fromPos.x()).arg(fromPos.y())
+ .arg(toPos.x()).arg(toPos.y())
+- .arg(wireFlags)
++ .arg(wireFlags.toInt())
+ .arg(from->attachedToTitle()).arg(from->connectorSharedID())
+ .arg(to->attachedToTitle()).arg(to->connectorSharedID())
+ .arg(m_viewID)