Add function to resive the grid

This commit is contained in:
Andreas Fabri 2010-09-21 13:26:25 +00:00
parent b8e5221f14
commit 2d9beb8ef3
1 changed files with 8 additions and 1 deletions

View File

@ -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 <typename K>