mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 13:51:12 -07:00
Add component with icon generic component.
Add print walls and print top/bottom settings to recommended menu CURA-9793
This commit is contained in:
parent
dfb6c04d00
commit
5b76e3dd7c
2 changed files with 41 additions and 6 deletions
|
|
@ -3,8 +3,9 @@
|
|||
|
||||
import QtQuick 2.7
|
||||
import QtQuick.Controls 2.15
|
||||
import QtQuick.Layouts 2.10
|
||||
|
||||
import UM 1.5 as UM
|
||||
import UM 1.7 as UM
|
||||
import Cura 1.7 as Cura
|
||||
|
||||
|
||||
|
|
@ -63,12 +64,34 @@ RecommendedSettingSection
|
|||
{
|
||||
settingName: catalog.i18nc("@action:label", "Shell Thickness")
|
||||
|
||||
settingControl: Cura.SingleSettingTextField
|
||||
settingControl: RowLayout
|
||||
{
|
||||
width: parent.width
|
||||
settingName: "wall_thickness"
|
||||
validator: Cura.FloatValidator {}
|
||||
unitText: catalog.i18nc("@label", "mm")
|
||||
anchors.fill: parent
|
||||
spacing: UM.Theme.getSize("default_margin").width
|
||||
UM.ComponentWithIcon
|
||||
{
|
||||
Layout.fillWidth: true
|
||||
source: UM.Theme.getIcon("PrintWalls")
|
||||
displayComponent: Cura.SingleSettingTextField
|
||||
{
|
||||
width: parent.width
|
||||
settingName: "wall_thickness"
|
||||
validator: Cura.FloatValidator {}
|
||||
unitText: catalog.i18nc("@label", "mm")
|
||||
}
|
||||
}
|
||||
UM.ComponentWithIcon
|
||||
{
|
||||
Layout.fillWidth: true
|
||||
source: UM.Theme.getIcon("PrintTopBottom")
|
||||
displayComponent: Cura.SingleSettingTextField
|
||||
{
|
||||
width: parent.width
|
||||
settingName: "top_bottom_thickness"
|
||||
validator: Cura.FloatValidator {}
|
||||
unitText: catalog.i18nc("@label", "mm")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue