mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
Code cosmetics from code review
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
parent
8177a44b5d
commit
8079654f38
1 changed files with 4 additions and 4 deletions
|
|
@ -1476,7 +1476,7 @@ class HierarchyModel(QtCore.QAbstractItemModel):
|
|||
mimedata.setData("application/copy_task", encoded_data)
|
||||
return mimedata
|
||||
|
||||
def paste_mime_data(self, item, mime_data):
|
||||
def _paste_mime_data(self, item, mime_data):
|
||||
if not isinstance(item, (AssetItem, TaskItem)):
|
||||
return
|
||||
|
||||
|
|
@ -1510,11 +1510,11 @@ class HierarchyModel(QtCore.QAbstractItemModel):
|
|||
task_item = TaskItem(task_data, True)
|
||||
self.add_item(task_item, parent)
|
||||
|
||||
def paste(self, indices, mime_data):
|
||||
def paste(self, indexes, mime_data):
|
||||
|
||||
# Get the selected Assets uniquely
|
||||
items = set()
|
||||
for index in indices:
|
||||
for index in indexes:
|
||||
if not index.isValid():
|
||||
return
|
||||
item_id = index.data(IDENTIFIER_ROLE)
|
||||
|
|
@ -1527,7 +1527,7 @@ class HierarchyModel(QtCore.QAbstractItemModel):
|
|||
items.add(item)
|
||||
|
||||
for item in items:
|
||||
self.paste_mime_data(item, mime_data)
|
||||
self._paste_mime_data(item, mime_data)
|
||||
|
||||
|
||||
class BaseItem:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue