2 import QtQuick.Controls 2.15
6 layoutDirection: nodePortDock.layoutDirection
8 property var portModel: model.portId ? model : modelData
10 property int portId: portModel.portId
11 property int nodeId: nodeRoot.nodeModel.nodeId
13 property string tags: portModel.tags ||
""
15 property real relativeConnectorX: nodePortDock.relativeX +
19 portConnectorLoader.x +
20 portConnectorLoader.width / 2
22 property real relativeConnectorY: nodePortDock.relativeY +
26 portConnectorLoader.y +
27 portConnectorLoader.height / 2
29 function getNodeRoot() {
38 when: hoverHandler.hovered
48 width: nodeView.style.nodePortConnectorMargin
49 anchors.top: parent.top
50 anchors.bottom: parent.bottom
52 id: portConnectorLoader
53 property var portModel: portDockRow.portModel
54 property var nodeModel: nodeRoot.nodeModel
55 property string state: portDockRow.state
56 property QtObject style: nodeView.style
57 anchors.verticalCenter: parent.verticalCenter
58 anchors.horizontalCenter: parent.horizontalCenter
59 sourceComponent: nodeView.nodePortConnectorComponent
62 anchors.top: parent.top
63 anchors.bottom: parent.bottom
64 anchors.left: portConnectorLoader.left
65 anchors.right: portConnectorLoader.right
66 property var portModel: portDockRow.portModel
67 property var nodeModel: nodeRoot.nodeModel
68 property string state: portDockRow.state
69 property QtObject style: nodeView.style
70 sourceComponent: nodeView.nodePortConnectorMouseArea
74 property var portModel: portDockRow.portModel
75 property var nodeModel: nodeRoot.nodeModel
76 property string state: portDockRow.state
77 property QtObject style: nodeView.style
78 width: nodePortDock.width - portConnectorItem.width
79 sourceComponent: nodePortDock.nodePortComponent