mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
jump from type to name index on type commit
This commit is contained in:
parent
8a1028912b
commit
9268f5b8e0
1 changed files with 9 additions and 1 deletions
|
|
@ -162,7 +162,15 @@ class HierarchyView(QtWidgets.QTreeView):
|
|||
column = current_index.column()
|
||||
row = current_index.row()
|
||||
skipped_index = None
|
||||
if column > 0:
|
||||
# Change column from "type" to "name"
|
||||
if column == 1:
|
||||
new_index = self._source_model.index(
|
||||
current_index.row(),
|
||||
0,
|
||||
current_index.parent()
|
||||
)
|
||||
self.setCurrentIndex(new_index)
|
||||
elif column > 0:
|
||||
indexes = []
|
||||
for index in self.selectedIndexes():
|
||||
if index.column() == column:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue