separating the group header container

This commit is contained in:
Sam Gateau 2019-04-05 08:44:49 -07:00
parent 3ddde35d8f
commit 9581f5c958
2 changed files with 40 additions and 19 deletions

View file

@ -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
height: parent.height
PropLabel {
id: labelControl
anchors.left: headerContainer.left
anchors.right: headerContainer.right
anchors.verticalCenter: headerContainer.verticalCenter
text: root.label text: root.label
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
} }
/* Rectangle { }
anchors.left: parent.left
anchors.right: parent.right
height: 1
anchors.bottom: parent.bottom
color: global.colorBorderHighight
visible: root.isUnfold
}*/
} }
// The Panel container
Rectangle { Rectangle {
visible: root.isUnfold visible: root.isUnfold

View file

@ -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"