mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:49:24 +02:00
separating the group header container
This commit is contained in:
parent
3ddde35d8f
commit
9581f5c958
2 changed files with 40 additions and 19 deletions
|
@ -16,24 +16,27 @@ Item {
|
||||||
|
|
||||||
property var label: "group"
|
property var label: "group"
|
||||||
|
|
||||||
property alias isUnfold: headerRect.icon
|
property alias isUnfold: headerFolderIcon.icon
|
||||||
property alias propItemsPanel: propItemsContainer
|
property alias propItemsPanel: propItemsContainer
|
||||||
|
property alias headerContainer: headerContainer
|
||||||
|
|
||||||
|
// Header Item
|
||||||
Item {
|
Item {
|
||||||
id: header
|
id: header
|
||||||
height: global.slimHeight
|
height: global.slimHeight
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
|
||||||
|
// First in the header, the folder button / indicator
|
||||||
Item {
|
Item {
|
||||||
id: folder
|
id: headerFolder
|
||||||
anchors.left: header.left
|
anchors.left: header.left
|
||||||
width: headerRect.width * 2
|
width: headerFolderIcon.width * 2
|
||||||
anchors.verticalCenter: header.verticalCenter
|
anchors.verticalCenter: header.verticalCenter
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
||||||
PropCanvasIcon {
|
PropCanvasIcon {
|
||||||
id: headerRect
|
id: headerFolderIcon
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
|
@ -47,26 +50,28 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PropLabel {
|
// Next the header container
|
||||||
id: labelControl
|
// by default containing a Label showing the root.label
|
||||||
anchors.left: folder.right
|
Item {
|
||||||
|
id: headerContainer
|
||||||
|
anchors.left: headerFolder.right
|
||||||
anchors.right: header.right
|
anchors.right: header.right
|
||||||
anchors.verticalCenter: header.verticalCenter
|
anchors.verticalCenter: header.verticalCenter
|
||||||
text: root.label
|
height: parent.height
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Rectangle {
|
PropLabel {
|
||||||
anchors.left: parent.left
|
id: labelControl
|
||||||
anchors.right: parent.right
|
anchors.left: headerContainer.left
|
||||||
height: 1
|
anchors.right: headerContainer.right
|
||||||
anchors.bottom: parent.bottom
|
anchors.verticalCenter: headerContainer.verticalCenter
|
||||||
color: global.colorBorderHighight
|
text: root.label
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
visible: root.isUnfold
|
}
|
||||||
}*/
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The Panel container
|
||||||
Rectangle {
|
Rectangle {
|
||||||
visible: root.isUnfold
|
visible: root.isUnfold
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,22 @@ Rectangle {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
} */
|
} */
|
||||||
|
Jet.TaskPropView {
|
||||||
|
id: "lightingModel"
|
||||||
|
jobPath: "RenderMainView.LightingModel"
|
||||||
|
label: "Le LightingModel"
|
||||||
|
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
}
|
||||||
|
Jet.TaskPropView {
|
||||||
|
id: "theView"
|
||||||
|
jobPath: "RenderMainView"
|
||||||
|
label: "Le Render Main View"
|
||||||
|
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
}
|
||||||
Jet.TaskPropView {
|
Jet.TaskPropView {
|
||||||
id: "the"
|
id: "the"
|
||||||
jobPath: "RenderMainView.RenderDeferredTask"
|
jobPath: "RenderMainView.RenderDeferredTask"
|
||||||
|
|
Loading…
Reference in a new issue