Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Zoom in. #32

Closed
fasigno opened this Issue · 5 comments
@fasigno

Zoom should use the mouse pointer like the center reference point for the zoom.

@Mandarancio
Owner

Totally! I'm working on it!

@Mandarancio Mandarancio was assigned
@fasigno

I saw that all the elements are painted in the paintEvent of a QWidget.

This force to keep scale and translation factors locally in the objects and this makes the update of the view and of the coordinate system hard to maintain.

If we paint everything in a QGraphicsScene we can apply view transformations very easily.

With the zoom, for example, we can set the anchor transformation to the mouse position, fixing the actual issue.

Now, we should choose if wait for an QML graphics or fix the problem recoding this part.

@slyshykO
Collaborator
@fasigno

Ok, I agree with you.

If we paint everything in a QGraphicsScene, the Goo will be a QGraphicsItem. In this way it should be lighter than a QObject.

@fasigno

Ok, I can try to rewrite this part but probably it's better wait to the new levels' design.

@fasigno fasigno closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.