Skip to content
Snippets Groups Projects
Commit 9075fe7f authored by Andrey Daragan's avatar Andrey Daragan
Browse files

[+] The header and widget stack are added to the widget of the right panel.

parent 0c04d7a3
No related branches found
No related tags found
No related merge requests found
......@@ -3,38 +3,33 @@ import QtQuick.Controls 2.0
Rectangle {
id: dapRightPanel
property alias rightPanel: dapRightPanel
// property alias header: dapHeader
// property Rectangle headerData: undefined
// property alias childRightPanels: dapChildRightPanels
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.right: parent.right
width: 350
property alias header: dapHeader
property Item headerData: Item { }
property alias childRightPanels: dapChildRightPanels
property Item contentItemPanel: Item { }
rightPanel.anchors.top: parent.top
rightPanel.anchors.bottom: parent.bottom
rightPanel.anchors.right: parent.right
Rectangle
Item
{
id: dapHeader
// data: Rectangle
// {
// anchors.fill: parent
// }
data: headerData
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
// anchors.fill: parent
height: 30
color: "blue"
}
// StackView
// {
// id: dapChildRightPanels
// initialItem: parent
// anchors.top: dapHeader.bottom
// anchors.left: parent.left
// anchors.right: parent.right
// anchors.bottom: parent.bottom
// }
StackView
{
id: dapChildRightPanels
initialItem: contentItemPanel
anchors.top: dapHeader.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
}
}
......@@ -2,11 +2,10 @@ import QtQuick 2.4
import QtQuick.Controls 2.0
Page {
property DapTopPanelForm topPanelForm: undefined
property DapScreenForm screenForm: undefined
property DapTopPanelForm topPanelForm: DapTopPanelForm { }
property DapScreenForm screenForm: DapScreenForm { }
property alias separator: dapSeparator
property DapRightPanelForm rightPanelForm: DapRightPanelForm { }
// property alias childRightPanels: dapChildRightPanels
anchors.fill: parent
......@@ -14,7 +13,6 @@ Page {
contentItem:
Rectangle {
anchors.fill: parent
Item
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment