diff --git a/GraphicsView/include/CGAL/Qt/RegularGridGraphicsItem.h b/GraphicsView/include/CGAL/Qt/RegularGridGraphicsItem.h index 08aa28c4b3b..34dfb1af668 100644 --- a/GraphicsView/include/CGAL/Qt/RegularGridGraphicsItem.h +++ b/GraphicsView/include/CGAL/Qt/RegularGridGraphicsItem.h @@ -100,6 +100,13 @@ public: update(); } + void setDelta(double x, double y) + { + dx = x; + dy = y; + update(); + } + protected: void updateBoundingBox(); double dx, dy; @@ -119,7 +126,7 @@ protected: visible_edges(true), visible_vertices(true) { setVerticesPen(QPen(::Qt::red, 3.)); - setZValue(3); + setZValue(-1); } template