mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 23:29:39 +02:00
select a right-clicked item in asset browser
This commit is contained in:
parent
31f0e4a919
commit
188712a55b
1 changed files with 3 additions and 0 deletions
|
@ -379,6 +379,9 @@ Window {
|
|||
acceptedButtons: Qt.RightButton
|
||||
onClicked: {
|
||||
var index = treeView.indexAt(mouse.x, mouse.y);
|
||||
|
||||
treeView.selection.setCurrentIndex(index, 0x0002);
|
||||
|
||||
contextMenu.currentIndex = index;
|
||||
contextMenu.popup();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue