mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 10:18:59 +08:00
parent
de6ee745cb
commit
e85499c918
@ -111,4 +111,11 @@ UM.AngledCornerRectangle {
|
|||||||
//: Advanced configuration mode option
|
//: Advanced configuration mode option
|
||||||
ListElement { text: QT_TR_NOOP("Advanced"); file: "SidebarAdvanced.qml" }
|
ListElement { text: QT_TR_NOOP("Advanced"); file: "SidebarAdvanced.qml" }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Component.onCompleted: {
|
||||||
|
for(var i = 0; i < modesListModel.count; ++i)
|
||||||
|
{
|
||||||
|
modesListModel.setProperty(i, "text", qsTr(modesListModel.get(i).text));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ Column {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ToolButton {
|
ToolButton {
|
||||||
text: base.modesModel ? qsTr(base.modesModel.get(modeMenu.currentIndex).text) : "";
|
text: base.modesModel ? base.modesModel.get(modeMenu.currentIndex).text : "";
|
||||||
|
|
||||||
style: UM.Theme.styles.sidebar_header_button;
|
style: UM.Theme.styles.sidebar_header_button;
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ Column {
|
|||||||
model: base.modesModel;
|
model: base.modesModel;
|
||||||
|
|
||||||
MenuItem {
|
MenuItem {
|
||||||
text: qsTr(model.text);
|
text: model.text;
|
||||||
checkable: true;
|
checkable: true;
|
||||||
checked: modeMenu.currentIndex == index;
|
checked: modeMenu.currentIndex == index;
|
||||||
exclusiveGroup: modeMenuGroup;
|
exclusiveGroup: modeMenuGroup;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user