Added SettingsInheritanceManager

CURA-2361
This commit is contained in:
Jaime van Kessel 2016-09-16 09:38:52 +02:00
parent d0ad654108
commit 50f7c41ae4
4 changed files with 85 additions and 3 deletions

View file

@ -17,15 +17,18 @@ Button {
signal showTooltip(string text);
signal hideTooltip();
signal contextMenuRequested()
signal showAllHiddenInheritedSettings()
text: definition.label
iconSource: UM.Theme.getIcon(definition.icon)
checkable: true
checked: definition.expanded
onClicked: { forceActiveFocus(); definition.expanded ? settingDefinitionsModel.collapse(definition.key) : settingDefinitionsModel.expandAll(definition.key) }
Component.onCompleted: print(definition.label, propertyProvider.isValueUsed)
UM.SimpleButton
{
id: settingsButton
@ -57,7 +60,7 @@ Button {
anchors.right: parent.right
anchors.rightMargin: UM.Theme.getSize("setting_preferences_button_margin").width
visible: false //hiddenValuesCount > 0
visible: true //false //hiddenValuesCount > 0
height: parent.height / 2
width: height