mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-30 04:05:25 +08:00
Merge branch 'qt6_beyond_the_splash' of github.com:Ultimaker/Cura into qt6_beyond_the_splash
This commit is contained in:
commit
eb4e27dd30
@ -305,14 +305,6 @@ Item
|
||||
padding: UM.Theme.getSize("default_margin").width
|
||||
|
||||
contentItem: Item {}
|
||||
|
||||
onContentItemChanged:
|
||||
{
|
||||
// Since we want the size of the content to be set by the size of the content,
|
||||
// we need to do it like this.
|
||||
content.width = contentItem.width + 2 * content.padding
|
||||
content.height = contentItem.height + 2 * content.padding
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -322,10 +314,8 @@ Item
|
||||
{
|
||||
// Since it could be that the content is dynamically populated, we should also take these changes into account.
|
||||
target: content.contentItem
|
||||
function onWidthChanged() { content.width = content.contentItem.width + 2 * content.padding }
|
||||
function onHeightChanged()
|
||||
{
|
||||
content.height = content.contentItem.height + 2 * content.padding
|
||||
contentContainer.height = contentHeader.height + content.height
|
||||
}
|
||||
}
|
||||
|
@ -15,9 +15,8 @@ Item
|
||||
id: content
|
||||
|
||||
property int absoluteMinimumHeight: 200 * screenScaleFactor
|
||||
|
||||
width: UM.Theme.getSize("print_setup_widget").width - 2 * UM.Theme.getSize("default_margin").width
|
||||
height: contents.height + buttonRow.height
|
||||
implicitWidth: UM.Theme.getSize("print_setup_widget").width - 2 * UM.Theme.getSize("default_margin").width
|
||||
implicitHeight: contents.height + buttonRow.height
|
||||
|
||||
enum Mode
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user