mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Allow adding multiple per object settings at once
This reuses the "GUI pattern" of the main setting visibility page. CURA-1799
This commit is contained in:
parent
7326d77605
commit
7020fd6903
2 changed files with 5 additions and 5 deletions
|
@ -16,17 +16,17 @@ UM.TooltipArea
|
||||||
width: childrenRect.width;
|
width: childrenRect.width;
|
||||||
height: childrenRect.height;
|
height: childrenRect.height;
|
||||||
|
|
||||||
Button
|
CheckBox
|
||||||
{
|
{
|
||||||
id: check
|
id: check
|
||||||
|
|
||||||
text: definition.label
|
text: definition.label
|
||||||
|
checked: addedSettingsModel.getVisible(model.key)
|
||||||
|
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
addedSettingsModel.setVisible(model.key, true);
|
addedSettingsModel.setVisible(model.key, checked);
|
||||||
settingPickDialog.visible = false
|
UM.ActiveTool.forceUpdate();
|
||||||
UM.ActiveTool.forceUpdate()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -377,7 +377,7 @@ Item {
|
||||||
|
|
||||||
rightButtons: [
|
rightButtons: [
|
||||||
Button {
|
Button {
|
||||||
text: catalog.i18nc("@action:button", "Cancel");
|
text: catalog.i18nc("@action:button", "Close");
|
||||||
onClicked: {
|
onClicked: {
|
||||||
settingPickDialog.visible = false;
|
settingPickDialog.visible = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue