mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-24 11:21:14 -07:00
Getting setting section sized properly
CURA-9793
This commit is contained in:
parent
ac2e733ea6
commit
eb13ac7f6b
4 changed files with 41 additions and 19 deletions
|
|
@ -10,7 +10,6 @@ import Cura 1.0 as Cura
|
|||
RecommendedSettingSection
|
||||
{
|
||||
id: enableAdhesionRow
|
||||
height: enableAdhesionContainer.height
|
||||
|
||||
title: catalog.i18nc("@label", "Adhesion")
|
||||
icon: UM.Theme.getIcon("Adhesion")
|
||||
|
|
@ -20,17 +19,29 @@ RecommendedSettingSection
|
|||
|
||||
property var curaRecommendedMode: Cura.RecommendedMode {}
|
||||
|
||||
function onEnableSectionChanged(state) {
|
||||
curaRecommendedMode.setAdhesion(state)
|
||||
}
|
||||
|
||||
UM.SettingPropertyProvider
|
||||
property UM.SettingPropertyProvider platformAdhesionType: UM.SettingPropertyProvider
|
||||
{
|
||||
id: platformAdhesionType
|
||||
containerStack: Cura.MachineManager.activeMachine
|
||||
removeUnusedValue: false //Doesn't work with settings that are resolved.
|
||||
key: "adhesion_type"
|
||||
watchedProperties: [ "value", "resolve", "enabled" ]
|
||||
storeIndex: 0
|
||||
}
|
||||
|
||||
function onEnableSectionChanged(state) {
|
||||
curaRecommendedMode.setAdhesion(state)
|
||||
}
|
||||
|
||||
contents: RecommendedSettingItem
|
||||
{
|
||||
settingName: catalog.i18nc("@action:label", "Print with")
|
||||
|
||||
settingControl: Rectangle
|
||||
{
|
||||
width: 20
|
||||
height: 20
|
||||
color: Qt.rgba(1, 0, 0, .5)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue