]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/actiondefault.cpp
First steps in fixing/cleaning up preview/snapper rendering.
[architektonas] / src / actions / actiondefault.cpp
index 19e0bc1864d352cd2c626c09216d4a010d530ec0..29940ba90efe1cf50a55aa2f257aecdf6f39e126 100644 (file)
  * Constructor.
  */
 ActionDefault::ActionDefault(RS_EntityContainer & container,
-       GraphicView & graphicView): ActionInterface("Default",
-       container, graphicView)
+       GraphicView & graphicView):
+       ActionInterface("Default", container, graphicView)
 {
        RS_DEBUG->print("ActionDefault::ActionDefault");
        //hm.
-       graphicView.snapper.SetVisible();
-       graphicView.preview.SetVisible();
+//     graphicView.snapper.SetVisible();
+//     graphicView.preview.SetVisible();
        RS_DEBUG->print("ActionDefault::ActionDefault: OK");
 }
 
@@ -59,9 +59,6 @@ void ActionDefault::init(int status /*= 0*/)
        graphicView->snapper.setSnapRestriction(RS2::RestrictNothing);
        restrBak = RS2::RestrictNothing;
        RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarMain);
-//hm. Nope.
-//     graphicView->snapper.SetVisible();
-//     graphicView->preview.SetVisible();
 
        RS_DEBUG->print("ActionDefault::init: OK");
 }