mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Remove unused component
CURA-8683
This commit is contained in:
parent
29c9322fc8
commit
0bd0f09437
1 changed files with 0 additions and 27 deletions
|
|
@ -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 {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue