if ( myOperation == ZOOMVIEW )
{ // Zoom
+ QWMatrix m = worldMatrix();
+
double dx = aGlobalPoint.x() - myGlobalPoint.x();
- double s = 1. + fabs(dx)/10.;
+ double s = 1. + fabs(dx)*( (m.m11() < 1) ? m.m11() : 1. )/70.;
if (dx < 0) s = 1./s;
- QWMatrix m = worldMatrix();
m.scale(s, s);
setWorldMatrix(m);
#define DEF_BACK_COLOR QColor(144, 208, 211)
#define RECTANGLE_BODY QColor(255,249,147)
-#define GRAPH_WIDTH 1050
-#define GRAPH_HEIGHT 750
+#define GRAPH_WIDTH 1250
+#define GRAPH_HEIGHT 950
#define GRAPH_MARGIN 50