Skip to content

Add connectionSelected and connectionDoubleClicked scene signals #551

Open

Description

@paceholder

idea

Add two signals to BasicGraphicsScene, like the ones for nodes:

  • connectionSelected(ConnectionId const connectionId)
  • connectionDoubleClicked(ConnectionId const connectionId)

ConnectionGraphicsObject emits them. connectionSelected fires when a connection becomes selected. connectionDoubleClicked needs a mouseDoubleClickEvent on the connection object.

Problem to be solved

A scene has nodeSelected and nodeDoubleClicked for nodes. For connections it has only connectionHovered and connectionHoverLeft. An application cannot react to a selected or double-clicked connection, for example to open an editor for it.

Prior art

The idea comes from pull request #399 by mindon, which added both signals (together with other changes that we do not take). We will write it as a small separate change.

Additional context

It is additive and fits a 3.x minor release. A test should check that both signals fire once for one click and one double click.

Checklist

  • I have verified that this feature request has not been logged before, by searching the issue tracker for similar requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions