mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-31 09:56:32 +02:00
[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:
parent
41ea5a5423
commit
53be806019
3 changed files with 26 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue