mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 07:09:02 +08:00
Translate layerview mode types
This commit is contained in:
parent
f8a3c3b0ba
commit
26fe46ce1f
@ -160,14 +160,18 @@ Item
|
||||
ListModel // matches LayerView.py
|
||||
{
|
||||
id: layerViewTypes
|
||||
ListElement {
|
||||
text: "Material Color"
|
||||
}
|
||||
|
||||
Component.onCompleted:
|
||||
{
|
||||
layerViewTypes.append({
|
||||
text: catalog.i18nc("@title:layerview mode", "Material Color"),
|
||||
type_id: 0
|
||||
}
|
||||
ListElement {
|
||||
text: "Line Type"
|
||||
})
|
||||
layerViewTypes.append({
|
||||
text: catalog.i18nc("@title:layerview mode", "Line Type"),
|
||||
type_id: 1 // these ids match the switching in the shader
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
ComboBox
|
||||
|
Loading…
x
Reference in New Issue
Block a user