mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 03:46:05 +08:00
Add tooltip to "Number of Extruders" control
This commit is contained in:
parent
e2c978f88b
commit
79e38407c8
@ -285,28 +285,36 @@ Cura.MachineAction
|
|||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@label", "Number of Extruders")
|
text: catalog.i18nc("@label", "Number of Extruders")
|
||||||
visible: extruderCountComboBox.visible
|
visible: extruderCountControl.visible
|
||||||
}
|
}
|
||||||
|
|
||||||
ComboBox
|
UM.TooltipArea
|
||||||
{
|
{
|
||||||
id: extruderCountComboBox
|
id: extruderCountControl
|
||||||
visible: manager.definedExtruderCount > 1
|
visible: manager.definedExtruderCount > 1
|
||||||
model: ListModel
|
height: extruderCountComboBox.height
|
||||||
|
width: extruderCountComboBox.width
|
||||||
|
text: machineExtruderCountProvider.properties.description
|
||||||
|
|
||||||
|
ComboBox
|
||||||
{
|
{
|
||||||
id: extruderCountModel
|
id: extruderCountComboBox
|
||||||
Component.onCompleted:
|
model: ListModel
|
||||||
{
|
{
|
||||||
for(var i = 0; i < manager.definedExtruderCount; i++)
|
id: extruderCountModel
|
||||||
|
Component.onCompleted:
|
||||||
{
|
{
|
||||||
extruderCountModel.append({text: String(i + 1), value: i});
|
for(var i = 0; i < manager.definedExtruderCount; i++)
|
||||||
|
{
|
||||||
|
extruderCountModel.append({text: String(i + 1), value: i});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
currentIndex: machineExtruderCountProvider.properties.value - 1
|
||||||
currentIndex: machineExtruderCountProvider.properties.value - 1
|
onActivated:
|
||||||
onActivated:
|
{
|
||||||
{
|
manager.setMachineExtruderCount(index + 1);
|
||||||
manager.setMachineExtruderCount(index + 1);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -867,7 +875,7 @@ Cura.MachineAction
|
|||||||
|
|
||||||
containerStackId: Cura.MachineManager.activeMachineId
|
containerStackId: Cura.MachineManager.activeMachineId
|
||||||
key: "machine_head_with_fans_polygon"
|
key: "machine_head_with_fans_polygon"
|
||||||
watchedProperties: [ "value", "description" ]
|
watchedProperties: [ "value" ]
|
||||||
storeIndex: manager.containerIndex
|
storeIndex: manager.containerIndex
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user