mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
Remove external dependency from SimulationViewMainComponent
Previously, panelTop had to be defined externally whenever SimulationViewMainComponent was used. I renamed it and set a default so the binding by a parent is optional. CURA-6853
This commit is contained in:
parent
f090450bba
commit
4148f56d2b
3 changed files with 15 additions and 5 deletions
|
@ -13,11 +13,18 @@ Item
|
|||
{
|
||||
Loader
|
||||
{
|
||||
property var panelTop: actionPanelWidget.y
|
||||
id: previewMain
|
||||
anchors.fill: parent
|
||||
|
||||
source: UM.Controller.activeView != null && UM.Controller.activeView.mainComponent != null ? UM.Controller.activeView.mainComponent : ""
|
||||
|
||||
// Indicate that the layer slider should stay above the action panel
|
||||
Binding
|
||||
{
|
||||
target: previewMain.item
|
||||
property: "layerSliderSafeYMax"
|
||||
value: actionPanelWidget.y
|
||||
}
|
||||
}
|
||||
|
||||
Cura.ActionPanelWidget
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue