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 ...@@ -3,38 +3,33 @@ import QtQuick.Controls 2.0
Rectangle { Rectangle {
id: dapRightPanel id: dapRightPanel
property alias rightPanel: dapRightPanel property alias rightPanel: dapRightPanel
// property alias header: dapHeader property alias header: dapHeader
// property Rectangle headerData: undefined property Item headerData: Item { }
// property alias childRightPanels: dapChildRightPanels property alias childRightPanels: dapChildRightPanels
anchors.top: parent.top property Item contentItemPanel: Item { }
anchors.bottom: parent.bottom
anchors.right: parent.right rightPanel.anchors.top: parent.top
width: 350 rightPanel.anchors.bottom: parent.bottom
rightPanel.anchors.right: parent.right
Rectangle Item
{ {
id: dapHeader id: dapHeader
// data: Rectangle data: headerData
// {
// anchors.fill: parent
// }
anchors.top: parent.top anchors.top: parent.top
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
// anchors.fill: parent
height: 30
color: "blue"
} }
// StackView StackView
// { {
// id: dapChildRightPanels id: dapChildRightPanels
// initialItem: parent initialItem: contentItemPanel
// anchors.top: dapHeader.bottom anchors.top: dapHeader.bottom
// anchors.left: parent.left anchors.left: parent.left
// anchors.right: parent.right anchors.right: parent.right
// anchors.bottom: parent.bottom anchors.bottom: parent.bottom
// } }
} }
...@@ -2,11 +2,10 @@ import QtQuick 2.4 ...@@ -2,11 +2,10 @@ import QtQuick 2.4
import QtQuick.Controls 2.0 import QtQuick.Controls 2.0
Page { Page {
property DapTopPanelForm topPanelForm: undefined property DapTopPanelForm topPanelForm: DapTopPanelForm { }
property DapScreenForm screenForm: undefined property DapScreenForm screenForm: DapScreenForm { }
property alias separator: dapSeparator property alias separator: dapSeparator
property DapRightPanelForm rightPanelForm: DapRightPanelForm { } property DapRightPanelForm rightPanelForm: DapRightPanelForm { }
// property alias childRightPanels: dapChildRightPanels
anchors.fill: parent anchors.fill: parent
...@@ -14,7 +13,6 @@ Page { ...@@ -14,7 +13,6 @@ Page {
contentItem: contentItem:
Rectangle { Rectangle {
anchors.fill: parent
Item 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