QmlNodeEditor
NodeHeader.qml
Go to the documentation of this file.
1 import QtQuick 2.15
2 import QtQuick.Controls 2.15
3 
4 Item {
5  height: style.nodeHeaderHeight
6  Rectangle {
7  radius: style.nodeBorderRadius
8  color: style.nodeHeaderBackgroundColor
9  anchors.fill: parent
10 
11  Rectangle {
12  anchors.fill: parent
13  anchors.topMargin: style.nodeBorderRadius
14  color: style.nodeHeaderBackgroundColor
15  gradient: style.nodeHeaderBackgroundGradient
16  }
17 
18  Label {
19  elide: Text.ElideRight
20  text: nodeModel.name
21  anchors.fill: parent
22  horizontalAlignment: Text.AlignHCenter
23  }
24  }
25 }