]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/actiondimlinear.cpp
Bugfixes related to removing Snapper class.
[architektonas] / src / actions / actiondimlinear.cpp
index 3191f1c1c3768951bb59c0e55ac88c62cf97c977..1560ac7139e1a5b8772bbe1dba81abc8c39a08e1 100644 (file)
@@ -38,7 +38,8 @@ ActionDimLinear::ActionDimLinear(EntityContainer & container,
        this->fixedAngle = fixedAngle;
        lastStatus = SetExtPoint1;
        //hm. doesn't work.
-       graphicView.snapper.SetVisible();
+//     graphicView.snapper.SetVisible();
+       graphicView.SetSnapperVisible();
        reset();
 }
 
@@ -84,7 +85,7 @@ void ActionDimLinear::trigger()
 //     graphicView->drawEntity(dim);
 //     graphicView->moveRelativeZero(rz);
 //     drawSnapper();
-       graphicView->snapper.SetVisible(false);
+       graphicView->SetSnapperVisible(false);
        graphicView->redraw();
 
        DEBUG->print("ActionDimLinear::trigger(): dim added: %d", dim->getId());
@@ -165,14 +166,16 @@ void ActionDimLinear::mouseReleaseEvent(QMouseEvent * e)
        {
                Vector ce(snapPoint(e));
                coordinateEvent(&ce);
-               graphicView->snapper.SetVisible();
+//             graphicView->snapper.SetVisible();
+               graphicView->SetSnapperVisible();
        }
        else if (e->button() == Qt::RightButton)
        {
                if (getStatus() == 0)
                {
                        graphicView->preview.SetVisible(false);
-                       graphicView->snapper.SetVisible(false);
+//                     graphicView->snapper.SetVisible(false);
+                       graphicView->SetSnapperVisible(false);
                }
 
 //             deletePreview();