mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 08:18:25 +02:00
[qt6][qml] Clean-up code and harmonize comments
This commit is contained in:
parent
b12d1fed06
commit
5a0b1c0c95
85 changed files with 575 additions and 538 deletions
|
@ -6,8 +6,9 @@ import GraphEditor 1.0
|
|||
import MaterialIcons 2.2
|
||||
|
||||
/**
|
||||
A cubic spline representing an edge, going from point1 to point2, providing mouse interaction.
|
||||
*/
|
||||
* A cubic spline representing an edge, going from point1 to point2, providing mouse interaction.
|
||||
*/
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
||||
|
@ -69,7 +70,6 @@ Item {
|
|||
control2X: x - ctrlPtDist
|
||||
control2Y: y
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ShapePath {
|
||||
|
@ -98,11 +98,13 @@ Item {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
// Place the label at the middle of the edge
|
||||
x: (root.startX + root.endX) / 2
|
||||
y: (root.startY + root.endY) / 2
|
||||
visible: root.isForLoop
|
||||
|
||||
Rectangle {
|
||||
anchors.centerIn: parent
|
||||
property int margin: 2
|
||||
|
@ -110,6 +112,7 @@ Item {
|
|||
height: icon.height + 2 * margin
|
||||
radius: width
|
||||
color: path.strokeColor
|
||||
|
||||
MaterialToolLabel {
|
||||
id: icon
|
||||
anchors.centerIn: parent
|
||||
|
@ -120,6 +123,7 @@ Item {
|
|||
color: palette.base
|
||||
ToolTip.text: "Foreach Loop"
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
id: loopArea
|
||||
anchors.fill: parent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue