mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 13:17:51 -06:00
CURA-4644 Set the property in the component where is being used.
This commit is contained in:
parent
6b214d2443
commit
b00d51a6eb
3 changed files with 4 additions and 2 deletions
|
@ -8,6 +8,7 @@ import UM 1.1 as UM
|
|||
|
||||
Item
|
||||
{
|
||||
property var packageData
|
||||
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
||||
height: visible ? childrenRect.height : 0
|
||||
visible: packageData.type == "material" && packageData.has_configs
|
||||
|
|
|
@ -10,7 +10,6 @@ Item
|
|||
{
|
||||
id: tile
|
||||
property bool installed: toolbox.isInstalled(model.id)
|
||||
property var packageData: model
|
||||
width: detailList.width - UM.Theme.getSize("wide_margin").width
|
||||
height: Math.max(UM.Theme.getSize("toolbox_detail_tile").height, childrenRect.height + UM.Theme.getSize("default_margin").height)
|
||||
Item
|
||||
|
@ -46,6 +45,7 @@ Item
|
|||
font: UM.Theme.getFont("default")
|
||||
}
|
||||
}
|
||||
|
||||
Item
|
||||
{
|
||||
id: controls
|
||||
|
@ -164,6 +164,7 @@ Item
|
|||
id: compatibilityChart
|
||||
anchors.top: normalData.bottom
|
||||
width: normalData.width
|
||||
packageData: model
|
||||
}
|
||||
|
||||
Rectangle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue