]> Shamusworld >> Repos - architektonas/blobdiff - src/drawingview.cpp
Converted codebase from Qt4 to Qt5.
[architektonas] / src / drawingview.cpp
index fc30ac8e259ce61a092b35210f2ab6280ce2b457..629999f148b4a83a9bb604bb0360bc502b54d2a1 100644 (file)
@@ -419,6 +419,16 @@ void DrawingView::mouseMoveEvent(QMouseEvent * event)
        // This returns true if we've moved over an object...
        if (document.PointerMoved(point))
        {
+/*
+Now objects handle mouse move snapping as well. The code below mainly works only
+for tools; we need to fix it so that objects work as well...
+
+There's a problem with the object point snapping in that it's dependent on the
+order of the objects in the document. Most likely this is because it counts the
+selected object last and thus fucks up the algorithm. Need to fix this...
+
+
+*/
                // Do object snapping here. Grid snapping on mouse down is done in the
                // objects themselves, only because we have to hit test the raw point,
                // not the snapped point. There has to be a better way...!