Refactor ComponentWithIcon to use contents instead of loader.

CURA-9793
This commit is contained in:
Joey de l'Arago 2022-12-12 14:22:38 +01:00
parent 8780a2c4a0
commit e05c70ae38
2 changed files with 5 additions and 3 deletions

View file

@ -41,7 +41,7 @@ Item
onExited: base.hideTooltip()
}
Loader
Item
{
id: settingContainer
height: childrenRect.height

View file

@ -75,7 +75,8 @@ RecommendedSettingSection
{
Layout.fillWidth: true
source: UM.Theme.getIcon("PrintWalls")
displayComponent: Cura.SingleSettingTextField
Cura.SingleSettingTextField
{
width: parent.width
settingName: "wall_thickness"
@ -88,7 +89,8 @@ RecommendedSettingSection
{
Layout.fillWidth: true
source: UM.Theme.getIcon("PrintTopBottom")
displayComponent: Cura.SingleSettingTextField
Cura.SingleSettingTextField
{
width: parent.width
settingName: "top_bottom_thickness"