mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 05:58:27 +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
|
acceptedButtons: Qt.RightButton
|
||||||
onClicked: {
|
onClicked: {
|
||||||
var index = treeView.indexAt(mouse.x, mouse.y);
|
var index = treeView.indexAt(mouse.x, mouse.y);
|
||||||
|
|
||||||
|
treeView.selection.setCurrentIndex(index, 0x0002);
|
||||||
|
|
||||||
contextMenu.currentIndex = index;
|
contextMenu.currentIndex = index;
|
||||||
contextMenu.popup();
|
contextMenu.popup();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue