Commit graph

23 commits

Author SHA1 Message Date
waaake
efb13f1d7d [ui] Edge: Added mouse area which checks clicks on edgeArea
The workaround on edge crashing is to use the mouse area around the edge and query if the click exists in the edge to accept pressed or released signal
2025-02-03 17:02:57 +05:30
waaake
870dcf4edb [ui] Edge: Updated curveScale to use standard property binding for EdgeMouseArea 2025-01-27 16:48:00 +05:30
waaake
49ceb6e78c [ui] Edge: Removed Qt.binding on curveScale 2025-01-23 10:42:28 +05:30
Candice Bentéjac
0dca19f158 [GraphEditor] Edge: Correctly update the EdgeMouseArea when moving nodes 2024-12-03 11:56:56 +01:00
Candice Bentéjac
05a742a221 [ui] Fix color for MaterialToolLabel
The name of the property used to set the color was ambiguous, causing
the colors to not be applied at all.
2024-11-22 16:54:58 +01:00
Candice Bentéjac
5a0b1c0c95 [qt6][qml] Clean-up code and harmonize comments 2024-11-07 18:15:37 +01:00
Candice Bentéjac
52444ef0ad [GraphEditor] Edge: Set curve scale after initializing EdgeMouseArea
The curve scale of the mouse area for an edge used to be defined when
initializing the `EdgeMouseArea` for that edge. Setting it triggers a
chain of event that allow the mouse area to be active, thus correctly
detecting when it is being hovered or clicked on.

With Qt6, these events unfolded before the `EdgeMouseArea` had finished
initializing, which then caused it to not be active until the edge's
shape was modified (and the chain of events triggered again). It is now
set once the component has been created, so all the events can happen
in an environment where they are taken into account.
2024-11-07 18:13:33 +01:00
Candice Bentéjac
fbe72a0ad6 [qt6][GraphEditor] Correctly detect clicks on edges 2024-11-07 18:13:22 +01:00
Candice Bentéjac
0e71f2a520 [qt6] Update versions for all the imported modules
Qt3D.Extras cannot be updated to 2.6 yet, otherwise there are errors.
2024-11-07 18:09:01 +01:00
Aurore LAFAURIE
85bfc5614b [ui] Thicker edges for for loops and better draw of them
If it's a for loop edge, it needs 2 shapes to draw from each side of the info section
2024-09-02 19:04:22 +02:00
Aurore LAFAURIE
17099aef05 [Edge] Area of for loop info on edge is now selectable 2024-09-02 19:04:09 +02:00
Fabien Castan
31192bd1bd [ui] GraphEditor.Edge: Avoid binding loop 2024-09-02 17:08:03 +02:00
Fabien Castan
48d08b1f88 [ui] GraphEditor: improve alignments
Reduce usage of anchors (except centerIn/fill).
Display of Next/Previous for IntSelector.
2024-09-02 17:08:02 +02:00
Aurore LAFAURIE
aba045f4aa [ui] Display for loop size on edges 2024-09-02 17:08:02 +02:00
Aurore LAFAURIE
019e137386 [ui/core] First version of For Loop implementation
If you connect a list to an attribute, you can iterate over the list as a for loop
2024-09-02 17:08:01 +02:00
Candice Bentéjac
e9d80611c7 [GraphEditor] Clean-up: Harmonize syntax across all files 2023-11-06 16:28:22 +01:00
Candice Bentéjac
091346cbb8 [qml] Optimize QML files and fix syntax warnings
This commit addresses warnings that were raised by QtCreator's linter:
- IDs declared more than once
- variables declared more than once in the same scope
- type coercions
- variables declared as "var" when their type is known
- unclosed "case" in switch-case
2023-07-04 12:04:14 +02:00
Candice Bentéjac
9b5dd40b02 [qml] Qt5.15: Upgrade all QtQuick modules 2023-07-03 12:11:29 +02:00
Fabien Castan
85044e50cb [ui] GraphEditor: improve dash pattern on edges
- Avoid variation in dash pattern when the stroke is hovered by compensating strokeWidth.
- Use a dash pattern of [6,4] to get a stronger feeling of a dashed line (VS a dotted line).
2020-12-28 12:01:17 +01:00
Fabien Castan
b75ccdb02f [ui] GraphEditor: use dash lines for input/input edges 2020-12-18 01:09:34 +01:00
Yann Lanthony
efb8e1ed67 [ui] Edge: fix control points distance
Avoid getting increasingly distorted curves with edge width.
2020-01-24 11:52:32 +01:00
Yann Lanthony
53be806019 [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
2018-07-27 19:05:53 +02:00
Yann Lanthony
886ded7f19 [ui] create GraphEditor module 2017-12-12 17:47:27 +01:00
Renamed from meshroom/ui/qml/Edge.qml (Browse further)