SettingInheritance manager now has a complete list of all settings that have inheritance overridden

CURA-2361
This commit is contained in:
Jaime van Kessel 2016-09-16 11:18:20 +02:00
parent 50f7c41ae4
commit 5d84490d70
3 changed files with 74 additions and 10 deletions

View file

@ -22,7 +22,6 @@ UM.MainWindow
Component.onCompleted:
{
Printer.setMinimumWindowSize(UM.Theme.getSize("window_minimum_size"))
// Workaround silly issues with QML Action's shortcut property.
//
// Currently, there is no way to define shortcuts as "Application Shortcut".

View file

@ -28,7 +28,6 @@ Button {
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
@ -60,7 +59,11 @@ Button {
anchors.right: parent.right
anchors.rightMargin: UM.Theme.getSize("setting_preferences_button_margin").width
visible: true //false //hiddenValuesCount > 0
visible:
{
return Cura.SettingInheritanceManager.settingsWithInheritanceWarning.indexOf(definition.key) >= 0;
}
height: parent.height / 2
width: height