mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 13:34:01 -06:00
WIP: Complete add network and local printer flow
This commit is contained in:
parent
cc35eb0195
commit
5fa2c72b0d
5 changed files with 51 additions and 13 deletions
|
@ -25,16 +25,21 @@ Item
|
|||
height: header.contentShown ? (header.height + contentRectangle.height + 30) : header.height
|
||||
|
||||
property var contentComponent: null
|
||||
property alias contentItem: contentLoader.item
|
||||
|
||||
property alias title: header.title
|
||||
property alias contentShown: header.contentShown
|
||||
property bool contentShown: false
|
||||
|
||||
signal clicked()
|
||||
|
||||
Connections
|
||||
{
|
||||
target: header
|
||||
onClicked: base.clicked()
|
||||
onClicked:
|
||||
{
|
||||
base.contentShown = !base.contentShown
|
||||
clicked()
|
||||
}
|
||||
}
|
||||
|
||||
DropDownHeader
|
||||
|
@ -45,7 +50,7 @@ Item
|
|||
anchors.right: parent.right
|
||||
height: UM.Theme.getSize("expandable_component_content_header").height
|
||||
rightIconSource: contentShown ? UM.Theme.getIcon("arrow_bottom") : UM.Theme.getIcon("arrow_right")
|
||||
|
||||
contentShown: base.contentShown
|
||||
}
|
||||
|
||||
Cura.RoundedRectangle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue