Add tooltip to "Number of Extruders" control

This commit is contained in:
fieldOfView 2017-07-10 12:34:39 +02:00
parent e2c978f88b
commit 79e38407c8

View File

@ -285,13 +285,20 @@ Cura.MachineAction
Label Label
{ {
text: catalog.i18nc("@label", "Number of Extruders") text: catalog.i18nc("@label", "Number of Extruders")
visible: extruderCountComboBox.visible visible: extruderCountControl.visible
} }
UM.TooltipArea
{
id: extruderCountControl
visible: manager.definedExtruderCount > 1
height: extruderCountComboBox.height
width: extruderCountComboBox.width
text: machineExtruderCountProvider.properties.description
ComboBox ComboBox
{ {
id: extruderCountComboBox id: extruderCountComboBox
visible: manager.definedExtruderCount > 1
model: ListModel model: ListModel
{ {
id: extruderCountModel id: extruderCountModel
@ -309,6 +316,7 @@ Cura.MachineAction
manager.setMachineExtruderCount(index + 1); manager.setMachineExtruderCount(index + 1);
} }
} }
}
Label Label
{ {
@ -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
} }
} }