-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layout better node item creation #59239
Layout better node item creation #59239
Conversation
🪟 Windows buildsDownload Windows builds of this PR for testing. 🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. |
32e3ec8
to
21a6a50
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly what you propose, you want to add a red dot line different for the temporary/last added part of the polygon while the rest is a red plain line.
I don't know much about this area of the code. Instead of adding a new createTemporaryNodeItemRubberBand
and all the related code, could we not return a QGraphicsItem which aggregate two item (one plain line et one dotted?)
9b65cf6
to
93eaf04
Compare
93eaf04
to
c5d0ac4
Compare
c5d0ac4
to
997fdd7
Compare
997fdd7
to
ccb5542
Compare
ccb5542
to
14ce7ea
Compare
cd7bf6a
to
f4d991f
Compare
Thank you! |
Description
Add a secondary rubberband in node item creation tools to better show the polyline / polygon being traced, which match the digitizing tools behavior.
Tracing a new node item now clears the current selection.
Also fix pressing Backspace/Del keypress removes the last node. It was "eaten" by the global QShortcut that deletes the current item.
Before (Not possible to remove point, unclear what polygon will actually be drawn if one right-clicks)
After