Remove unused component

CURA-8683
This commit is contained in:
Jaime van Kessel 2022-01-11 11:26:05 +01:00
parent 29c9322fc8
commit 0bd0f09437

View File

@ -17,37 +17,10 @@ Item
width: parent.width
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
{
id: applicationMenu
width: parent.width
delegate: menuBarComponent
FileMenu {}
EditMenu {}