Skip to content
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

Breakpoint added on double click #237

Merged
merged 1 commit into from
Dec 6, 2022

Conversation

MariaRosariaFraraccio
Copy link
Contributor

No description provided.

@@ -414,6 +414,7 @@ def hoverLeaveEvent(self, hoverEvent):
:type hoverEvent: QGraphicsSceneHoverEvent
"""
self.setCursor(QtCore.Qt.ArrowCursor)
self.session.statusBar().clearMessage()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Questa la sposterei nelle modifiche sui suggerimenti che è più relativa a quella.

Add breakpoint to create right angle when the mouse is double clicked on the text item.
:type mouseEvent: QGraphicsSceneMouseEvent
"""
if not self.breakpoints and self.source.pos().x() != self.target.pos().x() and self.source.pos().y() != self.target.pos().y():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puoi usare direttamente un confronto del tipo:

self.source.pos() != self.target.pos()

in quanto QPoint(F) hanno gli operatori speciali

@mnamici
Copy link
Collaborator

mnamici commented Nov 25, 2022

Ultima cosa, metti uno spazio tra i separatori nel commento, es:

core: items: edges: common: base:

@mnamici
Copy link
Collaborator

mnamici commented Dec 6, 2022

Ok grazie, ho fatto squash delle modifiche e sistemato il commento.

@mnamici mnamici merged commit a3e322b into obdasystems:develop Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE]: Shortcut to obtain right-angled edge
2 participants