mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
info in component changed to actions
This commit is contained in:
parent
f02c917a94
commit
61026da1a4
2 changed files with 7 additions and 8 deletions
|
|
@ -49,8 +49,8 @@ class ComponentItem(QtWidgets.QFrame):
|
|||
self.icon.setText("")
|
||||
self.icon.setScaledContents(True)
|
||||
|
||||
self.info = SvgButton(
|
||||
get_resource('information.svg'), 22, 22,
|
||||
self.action_menu = SvgButton(
|
||||
get_resource('menu.svg'), 22, 22,
|
||||
[self.C_NORMAL, self.C_HOVER],
|
||||
frame_image_info, False
|
||||
)
|
||||
|
|
@ -62,7 +62,7 @@ class ComponentItem(QtWidgets.QFrame):
|
|||
expanding_sizePolicy.setVerticalStretch(0)
|
||||
|
||||
layout.addWidget(self.icon, alignment=QtCore.Qt.AlignCenter)
|
||||
layout.addWidget(self.info, alignment=QtCore.Qt.AlignCenter)
|
||||
layout.addWidget(self.action_menu, alignment=QtCore.Qt.AlignCenter)
|
||||
|
||||
layout_main.addWidget(frame_image_info)
|
||||
|
||||
|
|
@ -183,7 +183,6 @@ class ComponentItem(QtWidgets.QFrame):
|
|||
file_info = data['file_info']
|
||||
thumb = data['thumb']
|
||||
prev = data['prev']
|
||||
info = data['info']
|
||||
icon = data['icon']
|
||||
|
||||
resource = None
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ class DropDataFrame(QtWidgets.QFrame):
|
|||
for file in os.listdir(folder_path):
|
||||
if file.startswith(file_base) and file.endswith(file_ext):
|
||||
files.append(os.path.sep.join([folder_path, file]))
|
||||
info = {}
|
||||
actions = []
|
||||
|
||||
data = {
|
||||
'files': files,
|
||||
|
|
@ -178,7 +178,7 @@ class DropDataFrame(QtWidgets.QFrame):
|
|||
'representation': repr_name,
|
||||
'folder_path': folder_path,
|
||||
'is_sequence': True,
|
||||
'info': info
|
||||
'actions': actions
|
||||
}
|
||||
self._process_data(data)
|
||||
|
||||
|
|
@ -219,7 +219,7 @@ class DropDataFrame(QtWidgets.QFrame):
|
|||
files = []
|
||||
files.append(remainder)
|
||||
|
||||
info = {}
|
||||
actions = []
|
||||
|
||||
data = {
|
||||
'files': files,
|
||||
|
|
@ -229,7 +229,7 @@ class DropDataFrame(QtWidgets.QFrame):
|
|||
'representation': repr_name,
|
||||
'folder_path': folder_path,
|
||||
'is_sequence': False,
|
||||
'info': info
|
||||
'actions': actions
|
||||
}
|
||||
|
||||
self._process_data(data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue