Skip to content

Breakpoint added on double click#237

Merged
mnamici merged 1 commit intoobdasystems:developfrom
MariaRosariaFraraccio:auto-breakpoint
Dec 6, 2022
Merged

Breakpoint added on double click#237
mnamici merged 1 commit intoobdasystems:developfrom
MariaRosariaFraraccio:auto-breakpoint

Conversation

@MariaRosariaFraraccio
Copy link
Contributor

No description provided.

@MariaRosariaFraraccio MariaRosariaFraraccio linked an issue Nov 16, 2022 that may be closed by this pull request
: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