mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
Set min.-height and 'stage-awareness' for print-setup-UI. [CURA-6478]
This commit is contained in:
parent
194f01f840
commit
bd262ca6c4
3 changed files with 28 additions and 4 deletions
|
@ -79,7 +79,10 @@ Item
|
|||
property int shadowOffset: 2
|
||||
|
||||
// Prefix used for the dragged position preferences. Preferences not used if empty. Don't translate!
|
||||
property var dragPreferencesNamePrefix: ""
|
||||
property string dragPreferencesNamePrefix: ""
|
||||
|
||||
// Whether this component can remain when switchin from one stage to the other (for ex. 'Prepare' to 'Preview')
|
||||
property bool isMultiStage: false
|
||||
|
||||
function toggleContent()
|
||||
{
|
||||
|
@ -325,6 +328,18 @@ Item
|
|||
updateDragPosition();
|
||||
}
|
||||
|
||||
Connections
|
||||
{
|
||||
target: UM.Controller
|
||||
onActiveStageChanged:
|
||||
{
|
||||
if (isMultiStage)
|
||||
{
|
||||
updateDragPosition();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// DO NOT MOVE UP IN THE CODE: This connection has to be here, after the definition of the content item.
|
||||
// Apparently the order in which these are handled matters and so the height is correctly updated if this is here.
|
||||
Connections
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue