mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
ActiveTool.properties now returns a ContainerProxy object
This commit is contained in:
parent
edf2802099
commit
5d136a1da7
2 changed files with 4 additions and 4 deletions
|
@ -47,7 +47,7 @@ Item {
|
||||||
|
|
||||||
options: UM.ProfilesModel { addUseGlobal: true }
|
options: UM.ProfilesModel { addUseGlobal: true }
|
||||||
|
|
||||||
value: UM.ActiveTool.properties.Model.getItem(base.currentIndex).profile
|
value: UM.ActiveTool.properties.getValue("Model").getItem(base.currentIndex).profile
|
||||||
|
|
||||||
onItemValueChanged: {
|
onItemValueChanged: {
|
||||||
var item = UM.ActiveTool.properties.Model.getItem(base.currentIndex);
|
var item = UM.ActiveTool.properties.Model.getItem(base.currentIndex);
|
||||||
|
@ -63,7 +63,7 @@ Item {
|
||||||
Repeater {
|
Repeater {
|
||||||
id: settings;
|
id: settings;
|
||||||
|
|
||||||
model: UM.ActiveTool.properties.Model.getItem(base.currentIndex).settings
|
model: UM.ActiveTool.properties.getValue("Model").getItem(base.currentIndex).settings
|
||||||
|
|
||||||
UM.SettingItem {
|
UM.SettingItem {
|
||||||
width: UM.Theme.sizes.setting.width;
|
width: UM.Theme.sizes.setting.width;
|
||||||
|
@ -91,7 +91,7 @@ Item {
|
||||||
width: UM.Theme.sizes.setting.height;
|
width: UM.Theme.sizes.setting.height;
|
||||||
height: UM.Theme.sizes.setting.height;
|
height: UM.Theme.sizes.setting.height;
|
||||||
|
|
||||||
onClicked: UM.ActiveTool.properties.Model.removeSettingOverride(UM.ActiveTool.properties.Model.getItem(base.currentIndex).id, model.key)
|
onClicked: UM.ActiveTool.properties.getValue("Model").removeSettingOverride(UM.ActiveTool.properties.getValue("Model").getItem(base.currentIndex).id, model.key)
|
||||||
|
|
||||||
style: ButtonStyle
|
style: ButtonStyle
|
||||||
{
|
{
|
||||||
|
|
|
@ -464,7 +464,7 @@ UM.MainWindow
|
||||||
height: childrenRect.height;
|
height: childrenRect.height;
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: UM.ActiveTool.properties.Rotation != undefined ? "%1°".arg(UM.ActiveTool.properties.Rotation) : "";
|
text: UM.ActiveTool.properties.getValue("Rotation") != undefined ? "%1°".arg(UM.ActiveTool.properties.Rotation) : "";
|
||||||
}
|
}
|
||||||
|
|
||||||
visible: UM.ActiveTool.valid && UM.ActiveTool.properties.Rotation != undefined;
|
visible: UM.ActiveTool.valid && UM.ActiveTool.properties.Rotation != undefined;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue