QmlNodeEditor
NodePortConnector.qml
Go to the documentation of this file.
1 import QtQuick 2.15
2 import QtQuick.Controls 2.15
3 
4 Rectangle {
5  id: nodePortConnector
6 
7  width: style.nodePortConnectorWidth
8  height: style.nodePortConnectorWidth
9  radius: style.nodePortConnectorWidth
10  color: style.nodePortConnectorColor
11 
12  border.color: style.nodePortConnectorBorderColor
13  border.width: style.nodePortConnectorBorderWidth
14 
15  state: parent.state
16 
17  states: [
18  State {
19  name: "hovered"
20  PropertyChanges {
21  target: nodePortConnector
22  width: style.nodePortConnectorHoverWidth
23  height: style.nodePortConnectorHoverWidth
24  radius: style.nodePortConnectorHoverWidth
25  color: style.nodePortConnectorHoverColor
26  }
27  },
28  State {
29  name: "highlighted"
30  PropertyChanges {
31  target: nodePortConnector
32  color: style.nodePortConnectorHighlightColor
33  width: style.nodePortConnectorHighlightWidth
34  height: style.nodePortConnectorHighlightWidth
35  radius: style.nodePortConnectorHighlightWidth
36  }
37  }
38  ]
39 }