QmlDesigner: Fix rename context menu option in material browser

The method the rename context menu option calls was moved in
a recent refactoring.

Fixes: QDS-10170
Change-Id: Ia96efa0782a4b62f07ea0e7cfd9b0d9588595d06
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2023-06-27 14:15:00 +03:00
parent 85c4c90c63
commit 53bb2f95e5

View File

@@ -24,6 +24,11 @@ Rectangle {
matName.commitRename()
}
function startRename()
{
matName.startRename()
}
border.width: MaterialBrowserBackend.materialBrowserModel.selectedIndex === index ? MaterialBrowserBackend.rootView.materialSectionFocused ? 3 : 1 : 0
border.color: MaterialBrowserBackend.materialBrowserModel.selectedIndex === index
? StudioTheme.Values.themeControlOutlineInteraction