mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 23:16:06 +08:00
Remove unused component
CURA-8683
This commit is contained in:
parent
29c9322fc8
commit
0bd0f09437
@ -17,37 +17,10 @@ Item
|
|||||||
width: parent.width
|
width: parent.width
|
||||||
height: applicationMenu.height
|
height: applicationMenu.height
|
||||||
|
|
||||||
Component
|
|
||||||
{
|
|
||||||
id: menuBarComponent
|
|
||||||
MenuBarItem
|
|
||||||
{
|
|
||||||
id: menuBarItem
|
|
||||||
|
|
||||||
function replaceText(txt)
|
|
||||||
{
|
|
||||||
var index = txt.indexOf("&")
|
|
||||||
if(index >= 0)
|
|
||||||
{
|
|
||||||
txt = txt.replace(txt.substr(index, 2), ("<u>" + txt.substr(index + 1, 1) +"</u>"))
|
|
||||||
}
|
|
||||||
return txt
|
|
||||||
}
|
|
||||||
|
|
||||||
contentItem: Label {
|
|
||||||
text: replaceText(menuBarItem.text)
|
|
||||||
color: "white"
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
textFormat: Text.RichText
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
MenuBar
|
MenuBar
|
||||||
{
|
{
|
||||||
id: applicationMenu
|
id: applicationMenu
|
||||||
width: parent.width
|
width: parent.width
|
||||||
delegate: menuBarComponent
|
|
||||||
FileMenu {}
|
FileMenu {}
|
||||||
|
|
||||||
EditMenu {}
|
EditMenu {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user