[ui] GraphEditor: improve Edge UI

* increase EdgeMouseArea thickness for easier picking
* EdgeMouseArea: propagate modifiers on pressed
* increase edge visual thickness when hovered
* add edge contextual menu on right click
* Alt+RighClick shortcut to delete an edge
This commit is contained in:
Yann Lanthony 2018-07-27 16:33:12 +02:00
parent 41ea5a5423
commit 53be806019
3 changed files with 26 additions and 4 deletions

View file

@ -12,10 +12,12 @@ class MouseEvent(QObject):
self._x = evt.x()
self._y = evt.y()
self._button = evt.button()
self._modifiers = evt.modifiers()
x = Property(float, lambda self: self._x, constant=True)
y = Property(float, lambda self: self._y, constant=True)
button = Property(Qt.MouseButton, lambda self: self._button, constant=True)
modifiers = Property(int, lambda self: self._modifiers, constant=True)
class EdgeMouseArea(QQuickItem):